aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/module/introspection.rb
diff options
context:
space:
mode:
authorCheah Chu Yeow <chuyeow@gmail.com>2008-06-26 10:21:53 +0800
committerJeremy Kemper <jeremy@bitsweat.net>2008-07-09 10:42:30 -0700
commitce4a1bb8538bd7cc5ee3cbf1156dc587482a7839 (patch)
tree0730d2ed46c4dd77b5ed141d37e9e41952b5c68b /activesupport/lib/active_support/core_ext/module/introspection.rb
parent11252e35b1756b025d8778c151f9f9a24057d1b1 (diff)
downloadrails-ce4a1bb8538bd7cc5ee3cbf1156dc587482a7839.tar.gz
rails-ce4a1bb8538bd7cc5ee3cbf1156dc587482a7839.tar.bz2
rails-ce4a1bb8538bd7cc5ee3cbf1156dc587482a7839.zip
Remove some Symbol#to_proc usage in runtime code. [#484 state:resolved]
Diffstat (limited to 'activesupport/lib/active_support/core_ext/module/introspection.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/module/introspection.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/module/introspection.rb b/activesupport/lib/active_support/core_ext/module/introspection.rb
index 40bbebb7c4..bb894ec080 100644
--- a/activesupport/lib/active_support/core_ext/module/introspection.rb
+++ b/activesupport/lib/active_support/core_ext/module/introspection.rb
@@ -70,6 +70,6 @@ class Module
# Returns the names of the constants defined locally rather than the
# constants themselves. See <tt>local_constants</tt>.
def local_constant_names
- local_constants.map(&:to_s)
+ local_constants.map { |c| c.to_s }
end
end