Closed qnm closed 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.
ActiveRecord
The previous check would throw an exception in that scenrio.
I've modified the check to detect that ActiveRecord::Base is also defined.
ActiveRecord::Base
Nice catch! Thanks!
Just pushed version 2.20.2 with this fix.
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.