I'm posting this here because I can't get it posted to the trac.
raises a deprecation warning. The only trouble is, it's only ever
called from ActiveRecord::Calculations::count, so it repeatedly tells
me I've called the offending deprecated function from within rails
The quick fix is to add 'caller(2)' to the arglist for
A better solution might be to use something akin to the Perlish
'carp', which walks up the call stack to find the first caller frame
(above the frame that made the call to carp) that isn't from the same
package/class as the call to carp and uses that as the place to report
the error from.