Class: NinjaModel::Associations::HasOneAssociation
- Inherits:
-
AssociationProxy
- Object
- AssociationProxy
- NinjaModel::Associations::HasOneAssociation
- Defined in:
- lib/ninja_model/associations/has_one_association.rb
Instance Method Summary collapse
Methods inherited from AssociationProxy
#===, #initialize, #inspect, #loaded, #loaded?, #proxy_owner, #proxy_reflection, #proxy_respond_to?, #proxy_target, #reload, #reset, #respond_to?, #send, #target, #target=
Constructor Details
This class inherits a constructor from NinjaModel::Associations::AssociationProxy
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class NinjaModel::Associations::AssociationProxy
Instance Method Details
#create(attrs = {}, replace_existing = true) ⇒ Object
5 6 7 |
# File 'lib/ninja_model/associations/has_one_association.rb', line 5 def create(attrs = {}, replace_existing = true) new_record end |