app/models/adhoq/time_based_orders.rb in adhoq-0.5.0 vs app/models/adhoq/time_based_orders.rb in adhoq-1.0.0
- old
+ new
@@ -1,9 +1,9 @@
module Adhoq
module TimeBasedOrders
extend ActiveSupport::Concern
included do
- scope :recent_first, -> { order("#{quoted_table_name}.updated_at DESC") }
+ scope :recent_first, -> { order(arel_table[:updated_at].desc) }
end
end
end