Skip to content
Browse files

Incompatible Symbol#to_proc was reverted upstream

  • Loading branch information...
1 parent f67b070 commit daab53d8c0bca1114c1485d0dcc52858a264ab9e @jeremy jeremy committed
Showing with 0 additions and 7 deletions.
  1. +0 −7 activesupport/lib/active_support/core_ext/symbol.rb
View
7 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:

0 comments on commit daab53d

Please sign in to comment.
Something went wrong with that request. Please try again.