Module: KirguduBase::Models::Scopes::WithUpdatedAtFinish
- Defined in:
- app/helpers/kirgudu_base/models/scopes.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
69 70 71 72 73 74 75 76 |
# File 'app/helpers/kirgudu_base/models/scopes.rb', line 69 def self.included(base) base.scope :with_updated_at_finish, lambda { |value| if value base.where { updated_at <= value } end } end |