Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

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)

Don't define to_proc for ruby 1.9

  • activesupport/lib/active_support/core_ext/symbol.rb

    old new  
    88  #   people.select(&:manager?).collect(&:salary) 
    99  def to_proc 
    1010    Proc.new { |*args| args.shift.__send__(self, *args) } 
    11   end 
     11  end if RUBY_VERSION < '1.9' 
    1212end