templates/unicorn.rb in suspenders-1.9.3 vs templates/unicorn.rb in suspenders-1.10.0

- old
+ new

@@ -19,10 +19,11 @@ Signal.trap 'TERM' do puts 'Unicorn worker intercepting TERM and doing nothing. Wait for master to send QUIT' end if defined? ActiveRecord::Base - config = Rails.application.config.database_configuration[Rails.env] + config = ActiveRecord::Base.configurations[Rails.env] || + Rails.application.config.database_configuration[Rails.env] config['reaping_frequency'] = (ENV['DB_REAPING_FREQUENCY'] || 10).to_i config['pool'] = (ENV['DB_POOL'] || 2).to_i ActiveRecord::Base.establish_connection(config) end end