Displaying 2 results from an estimated 2 matches for "transaction_trad".
Did you mean:
  transaction_trades
  
2011 Sep 05
8
In Rails 3.1 Model.count() ignores :include - no outer join in generated SQL
Hello!
Just upgraded to Rails 3.1, ran my test and found this issue:
class Trade < ActiveRecord::Base
  has_many :transaction_trades
  .....
  def Trade.do_something
          stale_trades = Trade.count(''transaction_trades.id'',
                           :include => :transaction_trades,
                           :group => ''trades.id'')
                           :having => "co...
2011 Sep 08
4
In Rails 3.1 Model.count() ignores :include - no outer join in generated SQL
...or not (I got only suggestion for workaround).
As this looks like 3.1 regression that breaks existing 3.0.10 code I decided 
to post this here in addition.
I''ve upgraded to Rails 3.1 (from 3.0.10), ran my test suite and found this 
issue: 
class Trade < ActiveRecord::Base 
  has_many :transaction_trades 
  ..... 
  def Trade.do_something 
          stale_trades = Trade.count(''transaction_trades.id'', 
                           :include => :transaction_trades, 
                           :group => ''trades.id'') 
                           :having => &q...