diff options
author | Arthur Nogueira Neves <github@arthurnn.com> | 2016-01-27 13:56:29 -0500 |
---|---|---|
committer | Arthur Nogueira Neves <github@arthurnn.com> | 2016-01-27 13:56:29 -0500 |
commit | 6ed7570d7c557ef6f5507e2633096baeb0708c1c (patch) | |
tree | 5f5e98be0c5a210e9cca67b50c785d6458cbfd0f /actionpack | |
parent | 77383fc1e473819971d1e3ca614d7b361fa5cc33 (diff) | |
parent | 385e0a3311960032fa149f8650d73fd483dc5f75 (diff) | |
download | rails-6ed7570d7c557ef6f5507e2633096baeb0708c1c.tar.gz rails-6ed7570d7c557ef6f5507e2633096baeb0708c1c.tar.bz2 rails-6ed7570d7c557ef6f5507e2633096baeb0708c1c.zip |
Merge pull request #23289 from keram/patch-1
Fix typo in strong params hash deprecation message
Diffstat (limited to 'actionpack')
-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 |