[Rails-core] Error in ActiveRecord::Associations::AliasTracker when using subquery

2012-12-23 Thread Manuel Meurer
Hi all, I encountered an error in ActiveRecord when using subqueries. NoMethodError: undefined method `left' for :count:Symbol # /Users/me/.rbenv/versions/1.9.3-p327-perf/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/associations/alias_tracker.rb:64:in `block in initial_count_f

Re: [Rails-core] Error in ActiveRecord::Associations::AliasTracker when using subquery

2012-12-23 Thread Richard Schneeman
Can you open up a github issue for this? Also include the active record code that was used to generate the error, please try with Active Record 3.2.9 to make sure the bug hasn't been fixed there already. Please re-write any custom active record methods such as `tagged_with` with the plain old ac

Re: [Rails-core] Error in ActiveRecord::Associations::AliasTracker when using subquery

2012-12-25 Thread Manuel Meurer
Ok, will do. Just wanted to check first if this really looks like a error in AR... On Sunday, December 23, 2012 6:10:39 PM UTC+1, richard schneeman wrote: > > Can you open up a github issue for this? Also include the active record > code that was used to generate the error, please try with Activ