Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes preload_scope when association is polymorphic
Presently, the `preload_scope` check fails because `model.reflect_on_association(assocation).klass` will never be valid for polymorphic associations. This raises an ArgumentError if the association is polymorphic and preload_scope is applied, but in all other ways it behaves the same.e
- Loading branch information