Class: JSONAPIonify::Api::Relationship::One
- Inherits:
-
JSONAPIonify::Api::Relationship
- Object
- JSONAPIonify::Api::Relationship
- JSONAPIonify::Api::Relationship::One
- Defined in:
- lib/jsonapionify/api/relationship/one.rb
Constant Summary collapse
- DEFAULT_REPLACE_COMMIT =
proc { |owner:, request_instance:| # Set the association owner.send "#{self.class.rel.name}=", request_instance # Save the instance owner.save if owner.respond_to? :save }
Instance Attribute Summary
Attributes inherited from JSONAPIonify::Api::Relationship
#class_proc, #hidden, #name, #owner, #resolve
Method Summary
Methods inherited from JSONAPIonify::Api::Relationship
#hidden_for_action?, #initialize, #resource, #resource_class
Methods included from JSONAPIonify::Autoload
#autoload_all, eager_load!, unloaded
Methods included from Blocks
#append_class, extended, #prepend_class
Methods included from Documentation
#documentation_object, #options_json
Constructor Details
This class inherits a constructor from JSONAPIonify::Api::Relationship