Class: ROM::HTTP::Associations::ManyToOne
- Inherits:
-
Associations::ManyToOne
- Object
- Associations::ManyToOne
- ROM::HTTP::Associations::ManyToOne
- Defined in:
- lib/rom/http/associations/many_to_one.rb
Overview
ManyToOne implementation
Instance Method Summary collapse
Instance Method Details
#call(target: self.target) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/rom/http/associations/many_to_one.rb', line 10 def call(target: self.target) raise MissingAssociationViewError, "must override view" unless view schema = target.schema.qualified relation = target apply_view(schema, relation) end |