Sha256: 7e248481bb6b42a67f496b57b6c63723519c61528efc29403528a9166fede568

Contents?: true

Size: 199 Bytes

Versions: 7

Compression:

Stored size: 199 Bytes

Contents

module Grape
  module EndpointExtension
    def render(resources, options = {})
      env['jsonapi_options'] = options
      resources
    end
  end

  Endpoint.send(:include, EndpointExtension)
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
grape-jsonapi-resources-0.0.7 lib/grape-jsonapi-resources/endpoint_extension.rb
grape-jsonapi-resources-0.0.6 lib/grape-jsonapi-resources/endpoint_extension.rb
grape-jsonapi-resources-0.0.5 lib/grape-jsonapi-resources/endpoint_extension.rb
grape-jsonapi-resources-0.0.4 lib/grape-jsonapi-resources/endpoint_extension.rb
grape-jsonapi-resources-0.0.3 lib/grape-jsonapi-resources/endpoint_extension.rb
grape-jsonapi-resources-0.0.2 lib/grape-jsonapi-resources/endpoint_extension.rb
grape-jsonapi-resources-0.0.1 lib/grape-jsonapi-resources/endpoint_extension.rb