Module: GrapeRabl::Render

Defined in:
lib/grape-rabl/render.rb

Instance Method Summary collapse

Instance Method Details

#render(options = {}) ⇒ Object


3
4
5
6
# File 'lib/grape-rabl/render.rb', line 3

def render(options = {})
  env['api.tilt.rabl'] = options[:rabl]
  env['api.tilt.rabl_locals'] = options[:locals]
end