lib/tobox/fetcher.rb in tobox-0.3.2 vs lib/tobox/fetcher.rb in tobox-0.4.0

- old
+ new

@@ -8,16 +8,10 @@ @label = label @configuration = configuration @logger = @configuration.default_logger - database_uri = @configuration[:database_uri] - @db = database_uri ? Sequel.connect(database_uri.to_s) : Sequel::DATABASES.first - raise Error, "no database found" unless @db - - @db.extension :date_arithmetic - - @db.loggers << @logger unless @configuration[:environment] == "production" + @db = configuration.database @table = configuration[:table] @group_column = configuration[:group_column] @exponential_retry_factor = configuration[:exponential_retry_factor]