RubyMoney/money-rails

money-rails Initializer runs before connection handlers are established

afrase opened this issue · 0 comments

Depending on the order that gems are loaded, it's possible for the MoneyRails::Railtie block to be called before active_record.initialize_database is called. This causes the call to ActiveRecord::Base.connection_config to raise ActiveRecord::ConnectionNotEstablished since the connection handler hasn't been defined yet.

I've only had this occure when using Sidekiq Enterprises sidekiqswarm.