ActiveRecord::Sanitization::ClassMethods
module ActiveRecord::Sanitization::ClassMethods
Protected Instance Methods
Accepts a hash of SQL conditions and replaces those attributes that correspond to a composed_of
relationship with their expanded aggregate attribute values. Given:
class Person < ActiveRecord::Base composed_of :address, class_name: "Address", mapping: [%w(address_street street), %w(address_city