Class: Granite::Form::ActiveRecord::Associations::Reflections::EmbedsOne

Inherits:
Model::Associations::Reflections::EmbedsOne show all
Defined in:
lib/granite/form/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, generate_methods

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 Granite::Form::Model::Associations::Reflections::Base

Instance Method Details

#is_a?(klass) ⇒ Boolean

Returns:



18
19
20
# File 'lib/granite/form/active_record/associations.rb', line 18

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