Created
June 17, 2011 12:06
-
-
Save ivanvanderbyl/1031294 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. | |
ActionController::Base.wrap_parameters format: [:json] | |
# Disable root element in JSON by default. | |
if defined?(ActiveRecord) | |
ActiveRecord::Base.include_root_in_json = false | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment