mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove the configuration key in the correct place
This commit is contained in:
parent
dc4b4c46ef
commit
ea26229abe
1 changed files with 1 additions and 3 deletions
|
@ -24,7 +24,7 @@ module ActiveRecord
|
|||
# Forward any unused config params to PGconn.connect.
|
||||
[:statement_limit, :encoding, :min_messages, :schema_search_path,
|
||||
:schema_order, :adapter, :pool, :checkout_timeout, :template,
|
||||
:reaping_frequency, :insert_returning, :variables].each do |key|
|
||||
:prepared_statements, :reaping_frequency, :insert_returning, :variables].each do |key|
|
||||
conn_params.delete key
|
||||
end
|
||||
conn_params.delete_if { |k,v| v.nil? }
|
||||
|
@ -458,8 +458,6 @@ module ActiveRecord
|
|||
@visitor = BindSubstitution.new self
|
||||
end
|
||||
|
||||
connection_parameters.delete :prepared_statements
|
||||
|
||||
@connection_parameters, @config = connection_parameters, config
|
||||
|
||||
# @local_tz is initialized as nil to avoid warnings when connect tries to use it
|
||||
|
|
Loading…
Reference in a new issue