Rails Range end-exclusive range conditions patch
2009-02-06 00:31:00
I've submitted a patch to add support for Ruby's end-exclusive Range objects (created using … instead of ..) in ActiveRecord find :conditions hashes.
This is really useful if you want to break apart a series of objects on something like a date-time field, which doesn't quantize exactly to integer values (on all databases) and so can't be handled using non-exclusive ranges without overlaps from values exactly on the boundary.
Comments
-
-
This patch was committed to the rails master respository in commit 9991868 and was released in Rails 2.3.
-
