Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Conversation

@npafundi
Copy link

In a polymorphic relationship on ActiveRecord 4+, this conditional would result
in a nil reference class, because it would fall back to the pre-3.0 options
rather than using the reflection's foreign_type.

This change checks for major version 3+ rather than only 3.

In a polymorphic relationship on ActiveRecord 4+, this conditional would result
in a `nil` reference class, because it would fall back to the pre-3.0 options
rather than using the reflection's `foreign_type`.

This change checks for major version 3+ rather than only 3.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant