activeadmin-plugins / active_admin_datetimepicker

:calendar: active_admin_datetimepicker gem
MIT License
72 stars 48 forks source link

DateTimeRangeInput fields names fixed. #30

Closed KrlSbin closed 7 years ago

KrlSbin commented 7 years ago

Now filtering by time (hours and minutes) is applied correctly. In bundle with AA these fields values were overridden by ransack patch:

  config.add_predicate 'gteq_datetime',
    arel_predicate: 'gteq',
    formatter: ->(v) { v.beginning_of_day }

  config.add_predicate 'lteq_datetime',
    arel_predicate: 'lt',
    formatter: ->(v) { v + 1.day }
coveralls commented 7 years ago

Coverage Status

Coverage decreased (-14.4%) to 80.144% when pulling a9414f6e7cb6dfbaf01d9fd1dd96ddda0b41989d on NoPos:Fix-names-for-date-time-range-input into 0fc0f23fae5f13800205bc39a43e1ba127ff1cc8 on activeadmin-plugins:master.

Fivell commented 7 years ago

@NoPos , rebase pls

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.08%) to 95.238% when pulling 4577af51a7a80c7c8efae8b753d1710708aa49f2 on NoPos:Fix-names-for-date-time-range-input into f59ebdd42e17decc05ac5ef60b02344dc8337d52 on activeadmin-plugins:master.