Use a Constant for Associations, not class_name
Relying on a class name constant you’ve defined within your application for setting up associations is much better for reliability and refactoring than merely using a string. Read for the implications and implementation: http://blog.nrowegt.com/rails-associations-class-name-best-practice/
Post a comment