aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorschneems <richard.schneeman@gmail.com>2016-01-19 12:09:58 -0600
committerschneems <richard.schneeman@gmail.com>2016-01-19 12:32:55 -0600
commit875a0b6e4f2a5f0b45a38632b4367aa83d995ac3 (patch)
tree896cf330d9122ad1aeadd69d0115648e66059377 /actionpack
parent3f2ac413b7c455ca951944da510683f52cb964da (diff)
downloadrails-875a0b6e4f2a5f0b45a38632b4367aa83d995ac3.tar.gz
rails-875a0b6e4f2a5f0b45a38632b4367aa83d995ac3.tar.bz2
rails-875a0b6e4f2a5f0b45a38632b4367aa83d995ac3.zip
Link to docs instead of listing methods
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/metal/strong_parameters.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/actionpack/lib/action_controller/metal/strong_parameters.rb b/actionpack/lib/action_controller/metal/strong_parameters.rb
index 70b34c2756..e9aa0aae37 100644
--- a/actionpack/lib/action_controller/metal/strong_parameters.rb
+++ b/actionpack/lib/action_controller/metal/strong_parameters.rb
@@ -583,11 +583,13 @@ 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, as `ActionController::Parameters` no longer inherit 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, consider using one
- of these public methods that will not be deprecated:
- #{ public_methods.inspect }
+ 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,
+ consider using one of these documented methods which are not
+ deprecated: http://api.rubyonrails.org/v#{ActionPack.version}/classes/ActionController/Parameters.html
DEPRECATE
ActiveSupport::Deprecation.warn(message)
@parameters.public_send(method_sym, *args, &block)