diff options
author | Jorge Bejar <jorge@wyeworks.com> | 2015-06-02 15:55:26 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2015-06-11 16:54:16 -0300 |
commit | afc78e72b4fdf940bdd747c7f8461d562ab6bb73 (patch) | |
tree | 19ed0f244c0bd1e43a7f903e52c90ffdef7aef1f /railties/lib/rails/generators | |
parent | cf9f2f329a589a7867b395fbc0274a90a40c9b6f (diff) | |
download | rails-afc78e72b4fdf940bdd747c7f8461d562ab6bb73.tar.gz rails-afc78e72b4fdf940bdd747c7f8461d562ab6bb73.tar.bz2 rails-afc78e72b4fdf940bdd747c7f8461d562ab6bb73.zip |
Checking if controller responds to wrap_parameter is not longer required
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt index 94f612c3dd..cadc85cfac 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt @@ -5,7 +5,7 @@ # 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) + wrap_parameters format: [:json] end <%- unless options.skip_active_record? -%> |