Sha256: db5c439ff69307b50abc9fc950788cda805bc12159f7d92bca2af463fa3e2cf3
Contents?: true
Size: 530 Bytes
Versions: 5
Compression:
Stored size: 530 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 if respond_to?(:wrap_parameters) wrap_parameters :format => [:json] end 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
5 entries across 5 versions & 1 rubygems