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

Include ActiveRecord versions above 3.0 #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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