Skip to content

Date predicate is formatted as string #1649

Description

@dcrec1

Hello,

in previous versions, block in this code use to receive a time object:

Ransack.configure do |config|
  config.add_predicate 'lteq_eod',
                       arel_predicate: 'lteq',
                       formatter: proc { |value| value.end_of_day },
                       type: :date
end

After upgrading from 4.3.0 to 4.4.0, the proc block started receiving an string.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions