diff options
author | Cheah Chu Yeow <chuyeow@gmail.com> | 2008-06-26 10:21:53 +0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-07-09 10:42:30 -0700 |
commit | ce4a1bb8538bd7cc5ee3cbf1156dc587482a7839 (patch) | |
tree | 0730d2ed46c4dd77b5ed141d37e9e41952b5c68b /activesupport/lib/active_support/core_ext/object | |
parent | 11252e35b1756b025d8778c151f9f9a24057d1b1 (diff) | |
download | rails-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/object')
-rw-r--r-- | activesupport/lib/active_support/core_ext/object/instance_variables.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/object/instance_variables.rb b/activesupport/lib/active_support/core_ext/object/instance_variables.rb index 9f1d4ed2aa..4ecaab3bbb 100644 --- a/activesupport/lib/active_support/core_ext/object/instance_variables.rb +++ b/activesupport/lib/active_support/core_ext/object/instance_variables.rb @@ -35,7 +35,7 @@ class Object # C.new(0, 1).instance_variable_names # => ["@y", "@x"] if RUBY_VERSION >= '1.9' def instance_variable_names - instance_variables.map(&:to_s) + instance_variables.map { |var| var.to_s } end else alias_method :instance_variable_names, :instance_variables |