class TimeFrame::PredicateBuilderHandler

This class tells the active_record predicate builder how to handle time_frame classes when passed into a where-clause

Public Instance Methods

call(column, time_frame) click to toggle source
# File lib/time_frame/time_frame_predicate_builder_handler.rb, line 5
def call(column, time_frame)
  column.in(time_frame.min..time_frame.max)
end