method
new
v3.0.9 -
Show latest stable
- Class:
ActiveRecord::Associations::AssociationProxy
new(owner, reflection)public
No documentation available.
# File activerecord/lib/active_record/associations/association_proxy.rb, line 58
def initialize(owner, reflection)
@owner, @reflection = owner, reflection
@updated = false
reflection.check_validity!
Array.wrap(reflection.options[:extend]).each { |ext| proxy_extend(ext) }
reset
end