lib/json/patch/railtie.rb
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