Sha256: 985b10fbdf1de846ffb93ee3a98366b58635bfd08a2617841777df77e2047a8f

Contents?: true

Size: 375 Bytes

Versions: 1

Compression:

Stored size: 375 Bytes

Contents

require 'rails'

module JSON
  class Patch
    # This class registers our gem with Rails.
    class Railtie < ::Rails::Railtie
      # When the application loads, this will cause Rails to know
      #       # how to serve up the proper type.
      initializer 'json-patch' do
        Mime::Type.register 'application/json-patch+json', :json_patch
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
json-patch-1.0.0 lib/json/patch/railtie.rb