Sha256: 7ef94bf3d49d4d50a1dffeb5f31a5667844a00dd222d5e0eca32d59760fec683

Contents?: true

Size: 272 Bytes

Versions: 12

Compression:

Stored size: 272 Bytes

Contents

require 'jsonapi/rails'

module JsonapiCompliable
  module Rails
    def self.included(klass)
      klass.send(:include, Base)

      klass.class_eval do
        around_action :wrap_context
        alias_method :perform_render_jsonapi, :render
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
jsonapi_compliable-0.6.4 lib/jsonapi_compliable/rails.rb
jsonapi_compliable-0.6.3 lib/jsonapi_compliable/rails.rb
jsonapi_compliable-0.6.2 lib/jsonapi_compliable/rails.rb
jsonapi_compliable-0.6.1 lib/jsonapi_compliable/rails.rb
jsonapi_compliable-0.6.0 lib/jsonapi_compliable/rails.rb
jsonapi_compliable-0.5.7 lib/jsonapi_compliable/rails.rb
jsonapi_compliable-0.5.6 lib/jsonapi_compliable/rails.rb
jsonapi_compliable-0.5.5 lib/jsonapi_compliable/rails.rb
jsonapi_compliable-0.5.4 lib/jsonapi_compliable/rails.rb
jsonapi_compliable-0.5.3 lib/jsonapi_compliable/rails.rb
jsonapi_compliable-0.5.2 lib/jsonapi_compliable/rails.rb
jsonapi_compliable-0.5.1 lib/jsonapi_compliable/rails.rb