Ticket #8818: no_symtoproc_for_ruby_1_9.patch
| File no_symtoproc_for_ruby_1_9.patch, 454 bytes (added by lifofifo, 2 years ago) |
|---|
-
activesupport/lib/active_support/core_ext/symbol.rb
old new 8 8 # people.select(&:manager?).collect(&:salary) 9 9 def to_proc 10 10 Proc.new { |*args| args.shift.__send__(self, *args) } 11 end 11 end if RUBY_VERSION < '1.9' 12 12 end