diff options
author | Marek <nospam.keram@gmail.com> | 2016-01-27 18:41:48 +0000 |
---|---|---|
committer | Marek <nospam.keram@gmail.com> | 2016-01-27 18:41:48 +0000 |
commit | 385e0a3311960032fa149f8650d73fd483dc5f75 (patch) | |
tree | 5f5e98be0c5a210e9cca67b50c785d6458cbfd0f /actionpack/lib/action_controller/metal | |
parent | 77383fc1e473819971d1e3ca614d7b361fa5cc33 (diff) | |
download | rails-385e0a3311960032fa149f8650d73fd483dc5f75.tar.gz rails-385e0a3311960032fa149f8650d73fd483dc5f75.tar.bz2 rails-385e0a3311960032fa149f8650d73fd483dc5f75.zip |
Fix typo in strong params hash deprecation message
and remove unecessary spaces in string interpolation.
Diffstat (limited to 'actionpack/lib/action_controller/metal')
-rw-r--r-- | actionpack/lib/action_controller/metal/strong_parameters.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/metal/strong_parameters.rb b/actionpack/lib/action_controller/metal/strong_parameters.rb index ba03430930..d3382ef296 100644 --- a/actionpack/lib/action_controller/metal/strong_parameters.rb +++ b/actionpack/lib/action_controller/metal/strong_parameters.rb @@ -587,11 +587,11 @@ module ActionController def method_missing(method_sym, *args, &block) if @parameters.respond_to?(method_sym) message = <<-DEPRECATE.squish - Method #{ method_sym } is deprecated and will be removed in Rails 5.1, + Method #{method_sym} is deprecated and will be removed in Rails 5.1, as `ActionController::Parameters` no longer inherits from hash. Using this deprecated behavior exposes potential security problems. If you continue to use this method you may be creating - a security vulunerability in your app that can be exploited. Instead, + a security vulnerability in your app that can be exploited. Instead, consider using one of these documented methods which are not deprecated: http://api.rubyonrails.org/v#{ActionPack.version}/classes/ActionController/Parameters.html DEPRECATE |