Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

ActiveRecord::Relation#find with class

#5979

behavior changed?

class Author < ActiveRecord::Base
end 
class Mary
end 
Author.create!(:name => 'Mary')

In 3.0.1:

Author.where(:name => Mary).size # => 1

In 3.0.2:

Author.where(:name => Mary).size # NoMethodError: undefined method `visit_Mary'

Reported by Tohru Hashimoto · November 16th, 2010 @ 01:35 AM

State: resolved
Milestone: none
Assigned to: Aaron Patterson Aaron Patterson
Importance: Low