Class: Perry::Association::HasOne
- Defined in:
- lib/perry/association.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Has
#foreign_key, #polymorphic?, #polymorphic_type, #scope
Methods inherited from Base
#eager_loadable?, #foreign_key, #initialize, #polymorphic?, #primary_key, #scope, #target_klass
Constructor Details
This class inherits a constructor from Perry::Association::Base
Instance Method Details
#collection? ⇒ Boolean
259 260 261 |
# File 'lib/perry/association.rb', line 259 def collection? false end |
#type ⇒ Object
263 264 265 |
# File 'lib/perry/association.rb', line 263 def type :has_one end |