Module: Renalware::Events::EventListQuery::Ransackers

Extended by:
ActiveSupport::Concern
Defined in:
app/models/renalware/events/event_list_query.rb

Overview

Create ransackers to mixin to Event at runtime. These for instance cast created_at to a date so that for instance the predicate created_gteq excludes any time references - using created_gteq and created_lteq without this creates SQL that cannot find an event on one day, because of the way Ransack adds start of date and end of day times.