lib/sequel_rails/configuration.rb in sequel-rails-0.4.3 vs lib/sequel_rails/configuration.rb in sequel-rails-0.4.4
- old
+ new
@@ -36,10 +36,11 @@
end
private
def initialize(root, database_yml_hash)
+ super()
@root, @raw = root, database_yml_hash
end
def normalize_repository_config(hash)
config = {}
@@ -69,9 +70,12 @@
config['adapter'] = :postgresql
end
config['adapter'] = "jdbc:#{config['adapter']}"
end
end
+
+ # override max connections if requested in app configuration
+ config['max_connections'] = max_connections if max_connections
# some adapters only support an url
if config['adapter'] && config['adapter'] =~ /^(jdbc|do):/
params = {}
config.each do |k, v|