Navigation Menu

Skip to content

Commit

Permalink
Do not enable wrap_parameters
Browse files Browse the repository at this point in the history
This commit doesn't add anything since before it wrap_parameters was
overriden to do nothing.

Closes rails-api#33
  • Loading branch information
spastorino committed Jul 17, 2012
1 parent cdd2aac commit 57c3bf2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/rails-api/action_controller/api.rb
Expand Up @@ -95,7 +95,6 @@ def asset_path=(*); end
def asset_host=(*); end
def relative_url_root=(*); end
def perform_caching=(*); end
def wrap_parameters(*); end
def helpers_path=(*); end
def allow_forgery_protection=(*); end
def helper_method(*); end
Expand Down
@@ -0,0 +1,16 @@
# 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

<%- unless options.skip_active_record? -%>
# To enable root element in JSON for ActiveRecord objects.
# ActiveSupport.on_load(:active_record) do
# self.include_root_in_json = true
# end
<%- end -%>

0 comments on commit 57c3bf2

Please sign in to comment.