module PriceLog::PriceLog
Public Class Methods
included(price_log_model)
click to toggle source
# File lib/price_log_methods.rb, line 4 def self.included(price_log_model) price_log_model.extend Finders price_log_model.scope :in_order, -> { price_log_model.order('created_at ASC') } price_log_model.scope :recent, -> { price_log_model.reorder('created_at DESC') } end