Class: ActiveData::ActiveRecord::Associations::Reflections::EmbedsOne
- Inherits:
-
Model::Associations::Reflections::EmbedsOne
- Object
- Model::Associations::Reflections::Base
- Model::Associations::Reflections::EmbedsOne
- ActiveData::ActiveRecord::Associations::Reflections::EmbedsOne
- 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, #collection?, #embedded?, generate_methods
Methods inherited from Model::Associations::Reflections::Base
association_class, #belongs_to?, build, #build_association, #default, generate_methods, #initialize, #inspect, #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
6 7 8 |
# File 'lib/active_data/active_record/associations.rb', line 6 def is_a? klass super || klass == ::ActiveRecord::Reflection::AssociationReflection end |