Class: ActiveRecord::Reflection::AssociationReflection

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/embeds_reflection.rb

Overview

:nodoc:

Direct Known Subclasses

EmbedsOneReflection

Instance Method Summary collapse

Instance Method Details

#association_class_with_embeds_oneObject



39
40
41
42
43
44
45
# File 'lib/active_record/embeds_reflection.rb', line 39

def association_class_with_embeds_one
  if macro == :embeds_one
    Associations::EmbedsOneAssociation
  else
    association_class_without_embeds_one
  end
end