In rails 5, use a constant in method argument result in eager laad, will broken somethings in dev.
So, rails 5 with deperagate WARN for following example code:
has_many :order_notifications, class_name: Notification::Order # bad
has_many :order_notifications, class_name: 'Notification::Order' # good
Current worked version is:
But, I expect version is:
In rails 5, use a constant in method argument result in eager laad, will broken somethings in dev. So, rails 5 with deperagate WARN for following example code: