aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-04-20 03:52:13 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2008-04-20 03:52:13 -0700
commitdaab53d8c0bca1114c1485d0dcc52858a264ab9e (patch)
tree1fb949c6a2e22c3ff9fdcd1365e5f6335b46a7f3 /activesupport
parentf67b070facef6574df3c4386e3975242273fe456 (diff)
downloadrails-daab53d8c0bca1114c1485d0dcc52858a264ab9e.tar.gz
rails-daab53d8c0bca1114c1485d0dcc52858a264ab9e.tar.bz2
rails-daab53d8c0bca1114c1485d0dcc52858a264ab9e.zip
Incompatible Symbol#to_proc was reverted upstream
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/symbol.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/activesupport/lib/active_support/core_ext/symbol.rb b/activesupport/lib/active_support/core_ext/symbol.rb
index d41d47e70e..e4ac443809 100644
--- a/activesupport/lib/active_support/core_ext/symbol.rb
+++ b/activesupport/lib/active_support/core_ext/symbol.rb
@@ -1,10 +1,3 @@
-# Remove 1.8.7's incompatible method.
-if :to_proc.respond_to?(:to_proc) && [1] != ([[1, 2]].map(&:first) rescue false)
- class Symbol
- remove_method :to_proc
- end
-end
-
unless :to_proc.respond_to?(:to_proc)
class Symbol
# Turns the symbol into a simple proc, which is especially useful for enumerations. Examples: