Sha256: 13334a42c4001131e20a3f536ae416d8be41a445e35cddcf123f7c372eea1feb

Contents?: true

Size: 512 Bytes

Versions: 27

Compression:

Stored size: 512 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] if respond_to?(:wrap_parameters)
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

27 entries across 27 versions & 1 rubygems

Version Path
locomotivecms-3.3.0 spec/dummy/config/initializers/wrap_parameters.rb
locomotivecms-3.3.0.rc3 spec/dummy/config/initializers/wrap_parameters.rb
locomotivecms-3.3.0.rc2 spec/dummy/config/initializers/wrap_parameters.rb
locomotivecms-3.1.2 spec/dummy/config/initializers/wrap_parameters.rb
locomotivecms-3.2.1 spec/dummy/config/initializers/wrap_parameters.rb
locomotivecms-3.3.0.rc1 spec/dummy/config/initializers/wrap_parameters.rb
locomotivecms-3.2.0 spec/dummy/config/initializers/wrap_parameters.rb
locomotivecms-3.2.0.rc2 spec/dummy/config/initializers/wrap_parameters.rb
locomotivecms-3.2.0.rc1 spec/dummy/config/initializers/wrap_parameters.rb
locomotivecms-3.1.1 spec/dummy/config/initializers/wrap_parameters.rb
locomotivecms-3.1.0 spec/dummy/config/initializers/wrap_parameters.rb
locomotivecms-3.1.0.rc3 spec/dummy/config/initializers/wrap_parameters.rb
locomotivecms-3.1.0.rc2 spec/dummy/config/initializers/wrap_parameters.rb
locomotivecms-3.1.0.rc1 spec/dummy/config/initializers/wrap_parameters.rb
locomotivecms-3.0.1 spec/dummy/config/initializers/wrap_parameters.rb
locomotivecms-3.0.0 spec/dummy/config/initializers/wrap_parameters.rb
locomotivecms-3.0.0.rc7 spec/dummy/config/initializers/wrap_parameters.rb
locomotivecms-3.0.0.rc6 spec/dummy/config/initializers/wrap_parameters.rb
locomotivecms-3.0.0.rc5 spec/dummy/config/initializers/wrap_parameters.rb
locomotivecms-3.0.0.rc4 spec/dummy/config/initializers/wrap_parameters.rb