Module: PriceLog::PriceLog
- Defined in:
- lib/price_log_methods.rb
Defined Under Namespace
Modules: Finders
Class Method Summary collapse
Class Method Details
.included(price_log_model) ⇒ Object
4 5 6 7 8 |
# 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 |