rails/rails — Issue #3502: reflect_on_association NoMethodError: undefined method `split
Author: Nakort
Created: 2011-11-03 15:05:16+00:00
State: open

I am on ruby 1.9.3-p0 and rails 3.1.1

I have an auction model like this
``` ruby
class Auction
end
```
and a user model:

``` ruby
class User
has_many :won_auctions, :class_name => :auction
end
```

Whenever I call User.reflect_on_association(:won_auctions).klass I get

NoMethodError: undefined method `split' for :auction:Symbol

I i switch the :class_name in the has_many association from a symbol to a string it works fine