Sha256: cb4eb74d577a5fa43f085de441969967428d1899b10c4d30215da96af479635f
Contents?: true
Size: 212 Bytes
Versions: 2
Compression:
Stored size: 212 Bytes
Contents
module GrapeRabl module Render def render(options = {}) env['api.endpoint'].options[:route_options][:rabl] = options.delete(:rabl) end end end Grape::Endpoint.send(:include, GrapeRabl::Render)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
grape-rabl-0.2.2 | lib/grape-rabl/render.rb |
grape-rabl-0.2.1 | lib/grape-rabl/render.rb |