Casper
Not a member
Casper's latest activity
Sunday, August 09 2009
2949
Rails 2.3.3 ActiveRecord generates invalid SQL conditions for named_scope wit...
was updated
in Ruby on Rails
-
- Tag changed from 2.3.3, activerecord, bugmash, conditions, joins, named_scope, sql to 2.3.3, activerecord, bugmash, conditions, joins, named_scope, sql, verified
Tristan updated ticket at same time. Verified his patch works on my machine. Reapplied his tags. Disregard my previous post :-/
Thanks for the fix.
-
- Tag changed from 2.3.3, activerecord, bugmash, conditions, joins, named_scope, sql, verified to 2.3.3, activerecord, bugmash, conditions, joins, named_scope, sql
Ok since you found the weirdness with the first letter in the class name I'll tell you something even more strange.
I didn't post it earlier since I thought per...
Saturday, July 25 2009
2949
Rails 2.3.3 ActiveRecord generates invalid SQL conditions for named_scope wit...
was updated
in Ruby on Rails
-
Casper commented at 8:38 PMHere's a simplified model and migration. Making the problem easily reproducible:
class Widget < ActiveRecord::Base belongs_to :window
named_scope :en...
Friday, July 24 2009
2949
Rails 2.3.3 ActiveRecord generates invalid SQL conditions for named_scope wit...
was created
in Ruby on Rails
-
Casper created the ticket at 4:54 PMI just upgraded from Rails 2.2.2 to 2.3.3 and now ActiveRecord generates invalid SQL for named_scopes with :conditions + :joins.
Example extracted from my curre...