Sha256: c777fbba6599cc37ff96b53b54cb25f9deeaaa7ef0051464d0e2692bbcc8ad32

Contents?: true

Size: 480 Bytes

Versions: 7

Compression:

Stored size: 480 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 = false
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
activestorage_legacy-0.2.1 test/dummy/config/initializers/wrap_parameters.rb
activestorage_legacy-0.2.0 test/dummy/config/initializers/wrap_parameters.rb
activestorage_legacy-0.1.3 test/dummy/config/initializers/wrap_parameters.rb
activestorage_legacy-0.1.2 test/dummy/config/initializers/wrap_parameters.rb
activestorage_legacy-0.1.1 test/dummy/config/initializers/wrap_parameters.rb
activestorage_legacy-0.1.1.alpha test/dummy/config/initializers/wrap_parameters.rb
activestorage_legacy-0.1 test/dummy/config/initializers/wrap_parameters.rb