ActiveRecord::QueryMethods#in_order_of
error when passing an out-of-range Integer
#44745
Labels
ActiveRecord::QueryMethods#in_order_of
error when passing an out-of-range Integer
#44745
Steps to reproduce
When we pass an out-of-range integer to
in_order_of
, it will raise anActiveModel::RangeError
error.Below is the runnable script
Expected behavior
The Enumerable version will ignore it
so does
where
and
in_order_of
with non-existent valuetherefore,
in_order_of
should ignore out-of-range valueActual behavior
Raise an
ActiveModel::RangeError
errorSystem configuration
Rails version: 7.0.2.3
Ruby version: 2.7.5p203
The text was updated successfully, but these errors were encountered: