Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Association, class_name option: why a String? #6486

Closed
kuraga opened this Issue · 2 comments

3 participants

@kuraga

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

@alexeymuranov

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.

@carlosantoniodasilva

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.