Sha256: ca0ebca072aadb540fe969f430eed84780747286f95069140c3d7c2bce37d0b2
Contents?: true
Size: 630 Bytes
Versions: 2
Compression:
Stored size: 630 Bytes
Contents
module RooOnRails module Railties class Database < Rails::Railtie if ActiveRecord::VERSION::MAJOR >= 4 initializer 'roo_on_rails.database', after: 'active_record.initialize_database' do $stderr.puts 'initializer roo_on_rails.database' config = ActiveRecord::Base.configurations[Rails.env] config['variables'] ||= {} config['variables']['statement_timeout'] = ENV.fetch('DATABASE_STATEMENT_TIMEOUT', 200) config['reaping_frequency'] = ENV['DATABASE_REAPING_FREQUENCY'] ActiveRecord::Base.establish_connection end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
roo_on_rails-1.3.1 | lib/roo_on_rails/railties/database.rb |
roo_on_rails-1.3.0 | lib/roo_on_rails/railties/database.rb |