Open rgaufman opened 6 years ago
It seems the issue is with Rails 5.2.0 because of ActiveStorage, hmm. In my spec_helper when I add the following, the problem goes away:
# Remove the ActiveRecord constant, because it is autloaded by
# ActiveStorage and not needed for our application. The presence
# of the ActiveRecord constant causes rspec-rails to include
# extra fixture support, which results in:
#
# ActiveRecord::ConnectionNotEstablished:
# No connection pool with 'primary' found.
#
Object.send(:remove_const, :ActiveRecord)
But I'm still seeing the problem running in development. Any ideas?
I added this at the beginning of application.rb
, after requires and seemed to fix this in development.
Hi there, I'm using rails (5.2.0), bullet (5.7.5) with mongoid (6.4.1) - I don't have (or want) ActiveRecord.
When I run rails c, I get this:
I have this in my Gemfile:
And this in my development.rb
Any ideas?