diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-02-24 12:48:39 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-02-24 13:55:37 +0530 |
commit | 5f59c10471fee7bca43f65bb2bc776ed047715b6 (patch) | |
tree | a396b7393481625ad9f50ed504a8455854e02988 /actionpack/lib/action_controller | |
parent | 22db455dbe9c26fe6d723cac0758705d9943ea4b (diff) | |
download | rails-5f59c10471fee7bca43f65bb2bc776ed047715b6.tar.gz rails-5f59c10471fee7bca43f65bb2bc776ed047715b6.tar.bz2 rails-5f59c10471fee7bca43f65bb2bc776ed047715b6.zip |
Show permitted flag in the output of AC::Parameters#inspect
- Fixes #23822.
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/metal/strong_parameters.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/strong_parameters.rb b/actionpack/lib/action_controller/metal/strong_parameters.rb index 25ec3cf5b6..a01110d474 100644 --- a/actionpack/lib/action_controller/metal/strong_parameters.rb +++ b/actionpack/lib/action_controller/metal/strong_parameters.rb @@ -579,7 +579,7 @@ module ActionController end def inspect - "<#{self.class} #{@parameters}>" + "<#{self.class} #{@parameters} permitted: #{@permitted}>" end def method_missing(method_sym, *args, &block) |