Skip to content
This repository
Browse code

delete reaping frequency from the db config

  • Loading branch information...
commit f63fff6a8492b32c5e44202b938ce5d9600faa2a 1 parent 07f187b
Aaron Patterson authored January 05, 2012
10  activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -10,12 +10,14 @@ module ActiveRecord
10 10
   module ConnectionHandling
11 11
     # Establishes a connection to the database that's used by all Active Record objects
12 12
     def postgresql_connection(config) # :nodoc:
13  
-      config = config.symbolize_keys
  13
+      conn_params = config.symbolize_keys
14 14
 
15 15
       # Forward any unused config params to PGconn.connect.
16  
-      conn_params = config.except(:statement_limit, :encoding, :min_messages,
17  
-                                  :schema_search_path, :schema_order,
18  
-                                  :adapter, :pool, :wait_timeout)
  16
+      [:statement_limit, :encoding, :min_messages, :schema_search_path,
  17
+       :schema_order, :adapter, :pool, :wait_timeout,
  18
+       :reaping_frequency].each do |key|
  19
+        conn_params.delete key
  20
+      end
19 21
       conn_params.delete_if { |k,v| v.nil? }
20 22
 
21 23
       # Map ActiveRecords param names to PGs.

1 note on commit f63fff6

Lars Kanis

Oh, I forgot about the :reaping_frequency. But now the config for use within PostgreSQLAdapter doesn't have symbolized keys any more. Is this intended?

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