Module: ChronoModel::TimeMachine::TimeQuery

Included in:
HistoryModel::ClassMethods
Defined in:
lib/chrono_model/time_machine/time_query.rb

Overview

TODO Documentation

Instance Method Summary collapse

Instance Method Details

#time_query(match, time, options) ⇒ Object



9
10
11
12
13
# File 'lib/chrono_model/time_machine/time_query.rb', line 9

def time_query(match, time, options)
  range = columns_hash.fetch(options[:on].to_s)

  where(time_query_sql(match, time, range, options))
end