Module: ActiveRecord::Reflection::ClassMethods
- Defined in:
- lib/active_record/embeds_reflection.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#create_reflection_with_embeds(macro, name, scope, options, active_record) ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/active_record/embeds_reflection.rb', line 19 def (macro, name, , active_record) unless macro == :embeds_one return (macro, name, , active_record) end AssociationReflection.new(macro, name, , active_record).tap do |reflection| reflections.merge!(name => reflection) end end |