Module: Grape::Sideload

Defined in:
lib/grape/sideload.rb,
lib/grape/sideload/version.rb,
lib/grape/sideload/present_many.rb,
lib/grape/sideload/merge_payloads.rb

Defined Under Namespace

Classes: MergePayloads, PresentMany

Constant Summary collapse

VERSION =
"0.1.0"

Instance Method Summary collapse

Instance Method Details

#merge_payloads(*args) ⇒ Object



8
9
10
# File 'lib/grape/sideload.rb', line 8

def merge_payloads(*args)
  MergePayloads.(*args)
end

#present_many(*args) ⇒ Object



12
13
14
# File 'lib/grape/sideload.rb', line 12

def present_many(*args)
  PresentMany.(*args, method(:present).to_proc)
end