module Sequel::Plugins::StatesmanTimestamps::DatasetMethods

Public Instance Methods

state_changed_after(date) click to toggle source
# 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) click to toggle source
# 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