diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-01-05 09:58:47 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-01-05 09:58:47 -0800 |
commit | f63fff6a8492b32c5e44202b938ce5d9600faa2a (patch) | |
tree | df6f03c0a4dcc780b3df0c655645ad458f0c2a6d | |
parent | 07f187b7fe468ff7566f8365eb73339087b03c89 (diff) | |
download | rails-f63fff6a8492b32c5e44202b938ce5d9600faa2a.tar.gz rails-f63fff6a8492b32c5e44202b938ce5d9600faa2a.tar.bz2 rails-f63fff6a8492b32c5e44202b938ce5d9600faa2a.zip |
delete reaping frequency from the db config
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index cf86caa21e..e6ddf8bf8f 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -10,12 +10,14 @@ module ActiveRecord module ConnectionHandling # Establishes a connection to the database that's used by all Active Record objects def postgresql_connection(config) # :nodoc: - config = config.symbolize_keys + conn_params = config.symbolize_keys # Forward any unused config params to PGconn.connect. - conn_params = config.except(:statement_limit, :encoding, :min_messages, - :schema_search_path, :schema_order, - :adapter, :pool, :wait_timeout) + [:statement_limit, :encoding, :min_messages, :schema_search_path, + :schema_order, :adapter, :pool, :wait_timeout, + :reaping_frequency].each do |key| + conn_params.delete key + end conn_params.delete_if { |k,v| v.nil? } # Map ActiveRecords param names to PGs. |