Displaying 2 results from an estimated 2 matches for "stale_trad".
Did you mean:
stale_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 => "count_transaction_trades_id =
0")
end
end
Earlier t...
2011 Sep 08
4
In Rails 3.1 Model.count() ignores :include - no outer join in generated SQL
...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 => "count_transaction_trades_id = 0")
end
end
Ear...