Sha256: 74a145ca8c6df9b099a478697d96647319e9124639df66f43f8882be43a0658e

Contents?: true

Size: 291 Bytes

Versions: 17

Compression:

Stored size: 291 Bytes

Contents

# frozen_string_literal: true

require 'active_support/concern'
require 'fast_jsonapi/object_serializer'

module SnFoil
  module JsonapiSerializer
    extend ActiveSupport::Concern

    included do
      include FastJsonapi::ObjectSerializer

      set_key_transform :dash
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
snfoil-rails-0.8.2 lib/sn_foil/jsonapi_serializer.rb
snfoil-rails-0.8.1 lib/sn_foil/jsonapi_serializer.rb
snfoil-rails-0.8.0 lib/sn_foil/jsonapi_serializer.rb
snfoil-rails-0.7.1 lib/sn_foil/jsonapi_serializer.rb
snfoil-rails-0.7.0 lib/sn_foil/jsonapi_serializer.rb
snfoil-rails-0.5.5 lib/sn_foil/jsonapi_serializer.rb
snfoil-rails-0.5.4 lib/sn_foil/jsonapi_serializer.rb
snfoil-rails-0.5.3 lib/sn_foil/jsonapi_serializer.rb
snfoil-rails-0.5.2 lib/sn_foil/jsonapi_serializer.rb
snfoil-rails-0.5.1 lib/sn_foil/jsonapi_serializer.rb
snfoil-rails-0.5.0 lib/sn_foil/jsonapi_serializer.rb
snfoil-rails-0.4.6 lib/sn_foil/jsonapi_serializer.rb
snfoil-rails-0.4.5 lib/sn_foil/jsonapi_serializer.rb
snfoil-rails-0.4.4 lib/sn_foil/jsonapi_serializer.rb
snfoil-rails-0.4.3 lib/sn_foil/jsonapi_serializer.rb
snfoil-rails-0.4.1 lib/sn_foil/jsonapi_serializer.rb
snfoil-rails-0.3.0 lib/sn_foil/jsonapi_serializer.rb