Sha256: a6bac06d5a89c4cc1dade3d33354cc7c54ce4af8a7ea0c9b1bcfc28a8c86ac9c

Contents?: true

Size: 259 Bytes

Versions: 21

Compression:

Stored size: 259 Bytes

Contents

# frozen_string_literal: true

module NeetoCommonsBackend
  module Initializers
    class << self
      def wrap_parameters
        ActiveSupport.on_load(:action_controller) do
          wrap_parameters format: [:json]
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
neeto-commons-backend-1.0.89 lib/neeto_commons_backend/initializers/wrap_parameters.rb