paulelliott / fabrication

This project has moved to GitLab! Please check there for the latest updates.
https://gitlab.com/fabrication-gem/fabrication
MIT License
998 stars 97 forks source link

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

Closed qnm closed 5 years ago

qnm commented 5 years ago

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.

paulelliott commented 5 years ago

Nice catch! Thanks!

paulelliott commented 5 years ago

Just pushed version 2.20.2 with this fix.