mirror of
https://github.com/github/rails.git
synced 2026-01-29 00:08:15 -05:00
Incompatible Symbol#to_proc was reverted upstream
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user