lib/couch_potato.rb in couch_potato-1.13.0 vs lib/couch_potato.rb in couch_potato-1.14.0

- old
+ new

@@ -52,10 +52,10 @@ # Returns a specific database instance def self.use(database_name) resolved_database_name = resolve_database_name(database_name) Thread.current[:__couch_potato_databases] ||= {} - Thread.current[:__couch_potato_databases][resolved_database_name] ||= Database.new(couchrest_database_for_name!(resolved_database_name), name: database_name) + Thread.current[:__couch_potato_databases][resolved_database_name] ||= Database.new(couchrest_database_for_name(resolved_database_name), name: database_name) end # resolves a name to a database name/full url configured under additional databases def self.resolve_database_name(database_name) Config.additional_databases[database_name] || database_name