Sha256: f17fcebdb7dcc5ec1beccbcb38e0b074e53551dfb29137681ceba79d5ac4d6d3

Contents?: true

Size: 487 Bytes

Versions: 6

Compression:

Stored size: 487 Bytes

Contents

# Be sure to restart your server when you modify this file.

# This file contains settings for ActionController::ParamsWrapper which
# is enabled by default.

# Enable parameter wrapping for JSON. You can disable this by setting :format
# to an empty array.
ActiveSupport.on_load(:action_controller) do
  wrap_parameters format: [:json]
end

# To enable root element in JSON for ActiveRecord objects.
# ActiveSupport.on_load(:active_record) do
#   self.include_root_in_json = true
# end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
orats-5.1.2 lib/orats/templates/base/config/initializers/wrap_parameters.rb
orats-5.1.1 lib/orats/templates/base/config/initializers/wrap_parameters.rb
orats-5.0.3 lib/orats/templates/base/config/initializers/wrap_parameters.rb
orats-5.0.2 lib/orats/templates/base/config/initializers/wrap_parameters.rb
orats-5.0.1 lib/orats/templates/base/config/initializers/wrap_parameters.rb
orats-5.0.0 lib/orats/templates/base/config/initializers/wrap_parameters.rb