Skip to content
Browse files

Merge pull request #4910 from sskirby/fixes_regression_in_postgres_te…

…mplate_support

prevents the database.yml template option from being passed to PGConn
  • Loading branch information...
2 parents 6e054b1 + 9ed5a1c commit 6342cdd6ac7ea07edc3a905cd8ce700f3144c63d @tenderlove tenderlove committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
View
2 activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -14,7 +14,7 @@ def postgresql_connection(config) # :nodoc:
# Forward any unused config params to PGconn.connect.
[:statement_limit, :encoding, :min_messages, :schema_search_path,
- :schema_order, :adapter, :pool, :wait_timeout,
+ :schema_order, :adapter, :pool, :wait_timeout, :template,
:reaping_frequency].each do |key|
conn_params.delete key
end

0 comments on commit 6342cdd

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