Sha256: bd26dbb437f8b72325499e11940bb8f1ce30fac2eabcb643e0e88ad6aaf137b1
Contents?: true
Size: 711 Bytes
Versions: 2
Compression:
Stored size: 711 Bytes
Contents
require 'active_record' require 'rest-assured/config' require 'logger' $app_logger = Logger.new(AppConfig[:log_file]) $app_logger.level = Logger::DEBUG # active record logging is purely internal # thus disabling it for production ActiveRecord::Base.logger = if AppConfig[:environment] == 'production' Logger.new(test('e', '/dev/null') ? '/dev/null' : 'NUL:') else $app_logger end ActiveRecord::Base.establish_connection( :adapter => "sqlite3", :database => AppConfig[:database], :timeout => 10000 ) ActiveRecord::Migrator.migrate( File.expand_path('../../../db/migrate', __FILE__) )
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rest-assured-0.1.3 | lib/rest-assured/init.rb |
rest-assured-0.1.2 | lib/rest-assured/init.rb |