Rails Range end-exclusive range conditions patch

will.bryant

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

    1. This patch was committed to the rails master respository in commit 9991868 and was released in Rails 2.3.
      Will Bryant at 2009-05-16 00:35:18 +1200
    (We won't give out your email, but it helps filter spam.)