Skip to content
Browse files

1.8.7 compatybility

  • Loading branch information...
1 parent 201bc92 commit 58ee5379052b7a39ed3f01f31d421e2fd0f68eb9 @martinciu committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/nanosearch/config.rb
View
8 lib/nanosearch/config.rb
@@ -1,14 +1,14 @@
module Nanosearch
def self.config
- {db: db_config}
+ {:db => db_config}
end
private
def self.db_config
uri = URI.parse(ENV['DATABASE_URL'] || 'postgres://localhost/nanosearch_development')
- config = {host: uri.host, dbname: uri.path[1..-1]}
- config.merge!(user: uri.user) if uri.user
- config.merge!(password: uri.password) if uri.password
+ config = {:host => uri.host, :dbname => uri.path[1..-1]}
+ config.merge!(:user => uri.user) if uri.user
+ config.merge!(:password => uri.password) if uri.password
config
end
end

0 comments on commit 58ee537

Please sign in to comment.
Something went wrong with that request. Please try again.