Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

Verify that ActiveRecord::Base is defined when checking for support #312

Merged

Conversation

qnm
Copy link
Contributor

@qnm qnm commented May 2, 2019

Some gems will create an ActiveRecord module, but if you
aren't using already using AR you won't have AR::Base loaded.

The previous check would throw an exception in that scenrio.

I've modified the check to detect that ActiveRecord::Base is also defined.

Some gems will create an ActiveRecord module, but if you
aren't using AR you won't have AR::Base loaded. The check breaks
in this case.
@paulelliott paulelliott merged commit 6d5e6ed into paulelliott:master May 2, 2019
@paulelliott
Copy link
Owner

Nice catch! Thanks!

@paulelliott
Copy link
Owner

Just pushed version 2.20.2 with this fix.

@qnm qnm deleted the check-ar-base-defined-before-use branch May 7, 2019 03:13
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.

None yet

2 participants