Class: ActiveData::ActiveRecord::Associations::Reflections::EmbedsOne

Inherits:
Model::Associations::Reflections::EmbedsOne show all
Defined in:
lib/active_data/active_record/associations.rb

Constant Summary

Constants inherited from Model::Associations::Reflections::Base

Model::Associations::Reflections::Base::READ, Model::Associations::Reflections::Base::WRITE

Instance Attribute Summary

Attributes inherited from Model::Associations::Reflections::Base

#name, #options, #parent_reflection

Instance Method Summary collapse

Methods inherited from Model::Associations::Reflections::EmbedsOne

build

Methods included from Model::Associations::Reflections::Singular

#collection?

Methods inherited from Model::Associations::Reflections::EmbedsAny

build, #embedded?, #inspect, #klass

Methods inherited from Model::Associations::Reflections::Base

association_class, #belongs_to?, build, #build_association, #collection?, #default, generate_methods, #initialize, #klass, #macro, #read_source, #write_source

Constructor Details

This class inherits a constructor from ActiveData::Model::Associations::Reflections::Base

Instance Method Details

#is_a?(klass) ⇒ Boolean

Returns:



17
18
19
# File 'lib/active_data/active_record/associations.rb', line 17

def is_a?(klass)
  super || klass == ::ActiveRecord::Reflection::AssociationReflection
end