Class: ROM::HTTP::Associations::OneToMany

Inherits:
Associations::OneToMany
  • Object
show all
Defined in:
lib/rom/http/associations/one_to_many.rb

Overview

OneToMany implementation

Direct Known Subclasses

OneToOne

Instance Method Summary collapse

Instance Method Details

#call(target: self.target) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/rom/http/associations/one_to_many.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