Fixed deprecation warning: has_many :conditions option