-
Jacopo authored
Changes `ActiveRecord::Reflection#compute_class` in order to raise an `ArgumentError` when the computed class is not a subclass of `ActiveRecord::Base`. Raising a meaningful error ease the user interaction in the following scenarios: - Rails couldn't compute correctly the `class_name` - User sets as `:class_name` an invalid class Closes #15811.
Jacopo authoredChanges `ActiveRecord::Reflection#compute_class` in order to raise an `ArgumentError` when the computed class is not a subclass of `ActiveRecord::Base`. Raising a meaningful error ease the user interaction in the following scenarios: - Rails couldn't compute correctly the `class_name` - User sets as `:class_name` an invalid class Closes #15811.
Loading