This project is archived and is in readonly mode.
ActiveRecord::Relation#find with class
Reported by Tohru Hashimoto | November 16th, 2010 @ 01:35 AM
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'
Comments and changes to this ticket
-
Neeraj Singh November 16th, 2010 @ 01:57 AM
- Assigned user set to “Aaron Patterson”
- Importance changed from “” to “Low”
It works fine on rails edge.
-
Aaron Patterson November 16th, 2010 @ 02:07 AM
- State changed from “new” to “resolved”
Fixed with dcdfc84f55ea1a7880a30f63b6517745310d24eb
-
Tohru Hashimoto November 16th, 2010 @ 03:06 AM
I tested with ed91716439c2f3472f5545884628d5ebb7c2f890.
but the same error happened.
-
Repository November 16th, 2010 @ 04:28 AM
(from [c7dd1e4df4faedb20a31ec616d0e4360fa53033d]) support finding by a ruby class [#5979 state:resolved] https://github.com/rails/rails/commit/c7dd1e4df4faedb20a31ec616d0e4...
-
Repository November 16th, 2010 @ 04:28 AM
(from [ace84a003cb48f60ca478c05c1fd8a57d37663cf]) support finding by a ruby class [#5979 state:resolved] https://github.com/rails/rails/commit/ace84a003cb48f60ca478c05c1fd8...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Referenced by
- 5979 ActiveRecord::Relation#find with class (from [c7dd1e4df4faedb20a31ec616d0e4360fa53033d]) support...
- 5979 ActiveRecord::Relation#find with class (from [ace84a003cb48f60ca478c05c1fd8a57d37663cf]) support...