Module: Sequel::Plugins::StatesmanTimestamps::DatasetMethods
- Defined in:
- lib/sequel/plugins/statesman_timestamps.rb
Instance Method Summary collapse
Instance Method Details
#state_changed_after(date) ⇒ Object
23 24 25 26 |
# File 'lib/sequel/plugins/statesman_timestamps.rb', line 23 def state_changed_after(date) where(%["#{model.most_recent_transition_association_name }"."#{@statesman_timestamp_options[:create]}" > ?], date) end |
#state_changed_before(date) ⇒ Object
28 29 30 31 |
# File 'lib/sequel/plugins/statesman_timestamps.rb', line 28 def state_changed_before(date) where(%["#{model.most_recent_transition_association_name }"."#{@statesman_timestamp_options[:create]}" < ?], date) end |