This project is archived and is in readonly mode.

#1393 ✓duplicate
Jan De Poorter

conditions_tables matches date ranges

Reported by Jan De Poorter | November 17th, 2008 @ 06:01 PM | in 2.x

ActiveRecord::Associations::ClassMethods#conditions_tables matches ranges in conditions. When you have a range in your conditions, say for example of, it returns [.].


>> User.first.logins.conditions_tables(:conditions => {:created_at =>})
=> ["logins", "UTC.."]

This regexp is to blame:

conditions.join(' ').scan(/([\.a-zA-Z_]+).?\./).flatten

I'm working on a patch.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket