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

Include ActiveRecord versions above 3.0#42

Open
npafundi wants to merge 1 commit intortomayko:masterfrom
npafundi:activerecord-version
Open

Include ActiveRecord versions above 3.0#42
npafundi wants to merge 1 commit intortomayko:masterfrom
npafundi:activerecord-version

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