Sha256: cb699cc88a86fc12a02a4871009c6c87d6bcdf5fabed163de2b21eca1635cce0

Contents?: true

Size: 563 Bytes

Versions: 12

Compression:

Stored size: 563 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
  # Using old hash style to be able to test with Ruby 1.8.7
  wrap_parameters :format => [:json]
  #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

12 entries across 4 versions & 1 rubygems

Version Path
tabulous-1.3.0 test/applications/rails31/main/config/initializers/wrap_parameters.rb
tabulous-1.3.0 test/applications/rails31/subtabs/config/initializers/wrap_parameters.rb
tabulous-1.3.0 test/applications/rails31/simple_tabs/config/initializers/wrap_parameters.rb
tabulous-1.2.0 test/applications/rails31/main/config/initializers/wrap_parameters.rb
tabulous-1.2.0 test/applications/rails31/simple_tabs/config/initializers/wrap_parameters.rb
tabulous-1.2.0 test/applications/rails31/subtabs/config/initializers/wrap_parameters.rb
tabulous-1.1.0 test/applications/rails31/main/config/initializers/wrap_parameters.rb
tabulous-1.1.0 test/applications/rails31/simple_tabs/config/initializers/wrap_parameters.rb
tabulous-1.1.0 test/applications/rails31/subtabs/config/initializers/wrap_parameters.rb
tabulous-1.0.3 test/applications/rails31/main/config/initializers/wrap_parameters.rb
tabulous-1.0.3 test/applications/rails31/subtabs/config/initializers/wrap_parameters.rb
tabulous-1.0.3 test/applications/rails31/simple_tabs/config/initializers/wrap_parameters.rb