rails 3 sometimes fails on inherited model find() qeury as type=0
class Student < ActiveRecord::Base
class SrStudent < Student
class JrStudent < Student
JrStudent.find(:all, :conditions => [“status=1”])
SrStudent.find(:all, :conditions => [“status=1”])
Log query seems like :
type = 0 AND
students.status = 1)
In that query it auto set type=0 instead of its relevant class name.
These same contents was working fine with rails 2.3.8
NOTE:It sometimes fails on rails 3 like with above query, not every
Any suggestion ??