Sha256: da09f168301f6e4e4787ff79ca7d07f50545ba5a43d797c80179afa03722386b

Contents?: true

Size: 464 Bytes

Versions: 3

Compression:

Stored size: 464 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

# Disable root element in JSON by default.
ActiveSupport.on_load(:active_record) do
  self.include_root_in_json = false
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
plan_b-0.0.2.pre1 config/initializers/wrap_parameters.rb
plan_b-0.0.1.pre1 config/initializers/wrap_parameters.rb
plan_b-0.0.1.pre config/initializers/wrap_parameters.rb