class ROM::HTTP::Associations::OneToMany

OneToMany implementation

Public Instance Methods

call(target: self.target) click to toggle source
# 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