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

Ticket #9640: fix-order.patch

File fix-order.patch, 0.8 kB (added by Aleksey Kondratenko, 4 months ago)

fix for test-order.patch

  • a/activerecord/lib/active_record/associations.rb

    old new  
    13651365        def include_eager_order?(options) 
    13661366          order = options[:order] 
    13671367          return false unless order 
    1368           order.scan(/([\.\w]+)\.\w+/).flatten.any? do |order_table_name| 
     1368          order.to_s.scan(/([\.\w]+)\.\w+/).flatten.any? do |order_table_name| 
    13691369            order_table_name != table_name 
    13701370          end 
    13711371        end