Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Association, class_name option: why a String? #6486

kuraga opened this Issue · 2 comments

3 participants


Why class_name option of association method have to be a String not a Class?


It can be also a symbol. It cannot be a class constant because if you have two associated models, when the first is being loaded, the second is not yet defined, so the constant would not be defined, and this would give an error.


Please use mailing lists or stackoverflow for questions, and github issues for real issues. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.