Module: KirguduBase::Models::Scopes::WithCreatedAtFinish
- Defined in:
- app/helpers/kirgudu_base/models/scopes.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
47 48 49 50 51 52 53 54 |
# File 'app/helpers/kirgudu_base/models/scopes.rb', line 47 def self.included(base) base.scope :with_created_at_finish, lambda { |value| if value base.where { created_at <= value } end } end |