Sha256: 22d8477a05fad9b6cab64a86b050c395670bdc11b9d820b72597ce536d87ccc6

Contents?: true

Size: 258 Bytes

Versions: 5

Compression:

Stored size: 258 Bytes

Contents

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

Grape::Endpoint.send(:include, Grape::Rabl::Render)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
grape-rabl-0.5.0 lib/grape-rabl/render.rb
grape-rabl-0.4.3 lib/grape-rabl/render.rb
grape-rabl-0.4.2 lib/grape-rabl/render.rb
grape-rabl-0.4.1 lib/grape-rabl/render.rb
grape-rabl-0.4.0 lib/grape-rabl/render.rb