aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller/base.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-11-29 09:04:47 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-11-29 09:04:47 -0200
commit390449ab8c55dacc08517bc270c6203bb1f50e02 (patch)
treee87455ea620155254511180cc1f08c5544ed195c /actionpack/lib/abstract_controller/base.rb
parent56e47cf66d2e3009b4032d0cd2ceb1a6e5e42573 (diff)
parentd1374f99bf3090f3e659687c112ed0c5c0865cfb (diff)
downloadrails-390449ab8c55dacc08517bc270c6203bb1f50e02.tar.gz
rails-390449ab8c55dacc08517bc270c6203bb1f50e02.tar.bz2
rails-390449ab8c55dacc08517bc270c6203bb1f50e02.zip
Merge pull request #16833 from sferik/symbol_to_proc
Pass symbol as an argument instead of a block
Diffstat (limited to 'actionpack/lib/abstract_controller/base.rb')
-rw-r--r--actionpack/lib/abstract_controller/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/abstract_controller/base.rb b/actionpack/lib/abstract_controller/base.rb
index 4026dab2ce..51c661f735 100644
--- a/actionpack/lib/abstract_controller/base.rb
+++ b/actionpack/lib/abstract_controller/base.rb
@@ -82,7 +82,7 @@ module AbstractController
# Except for public instance methods of Base and its ancestors
internal_methods +
# Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map { |x| x.to_s } -
+ public_instance_methods(false)).uniq.map(&:to_s) -
# And always exclude explicitly hidden actions
hidden_actions.to_a