Sha256: 1ac76f39fda2c531134e7924f5d6afb2f71d2863bb2af2e2c47150ea1ec7093f

Contents?: true

Size: 187 Bytes

Versions: 14

Compression:

Stored size: 187 Bytes

Contents

module Adhoq
  module TimeBasedOrders
    extend ActiveSupport::Concern

    included do
      scope :recent_first, -> { order("#{quoted_table_name}.updated_at DESC") }
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
adhoq-0.5.0 app/models/adhoq/time_based_orders.rb
adhoq-0.5.0.beta1 app/models/adhoq/time_based_orders.rb
adhoq-0.4.0 app/models/adhoq/time_based_orders.rb
adhoq-0.3.0 app/models/adhoq/time_based_orders.rb
adhoq-0.2.0 app/models/adhoq/time_based_orders.rb
adhoq-0.1.2 app/models/adhoq/time_based_orders.rb
adhoq-0.1.1 app/models/adhoq/time_based_orders.rb
adhoq-0.1.0 app/models/adhoq/time_based_orders.rb
adhoq-0.0.7 app/models/adhoq/time_based_orders.rb
adhoq-0.0.6 app/models/adhoq/time_based_orders.rb
adhoq-0.0.5 app/models/adhoq/time_based_orders.rb
adhoq-0.0.4 app/models/adhoq/time_based_orders.rb
adhoq-0.0.3 app/models/adhoq/time_based_orders.rb
adhoq-0.0.2 app/models/adhoq/time_based_orders.rb