Closed vrodic closed 2 weeks ago
I'd like to know more about the context. Are you referring to a case where join
is used with where("starts_at <= :ends_at", ends_at: ends_at.end_of_day)
to perform table joins?
I'm wondering if this point about Safety
section is already mentioned in the documentation:
https://docs.rubocop.org/rubocop-rails/2.25/cops_rails.html#railswhererange
As there hasn't been any activity for a while, I will close this issue. Please feel free to reopen it with further details.
With string where queries like
where("starts_at <= :ends_at", ends_at: ends_at.end_of_day)
the WhereRange cop doesn't suggest changing this towhere(starts_at: ..ends_at.end_of_day)
RuboCop version