Module: KirguduBase::Models::Scopes::WithUpdatedAtStart

Defined in:
app/helpers/kirgudu_base/models/scopes.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



58
59
60
61
62
63
64
65
# File 'app/helpers/kirgudu_base/models/scopes.rb', line 58

def self.included(base)
	base.scope :with_updated_at_start, lambda {
		|value|
		if value
			base.where { updated_at >= value }
		end
	}
end