I'm getting the error: "undefined method `abstract_class?' for Object:Class"
on a count_by_sql as below:
my_count = ActiveRecord::Base.count_by_sql(["SELECT widgets FROM wodgets WHERE colour = ? LIMIT 1", my_favourite_colour])
I've just been upgrading from Rails 2.2.2 to 2.3.4 and it used to work before.