From daab53d8c0bca1114c1485d0dcc52858a264ab9e Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sun, 20 Apr 2008 03:52:13 -0700 Subject: Incompatible Symbol#to_proc was reverted upstream --- activesupport/lib/active_support/core_ext/symbol.rb | 7 ------- 1 file changed, 7 deletions(-) (limited to 'activesupport/lib') 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: -- cgit v1.2.3