diff options
author | Nick Sieger <nick@nicksieger.com> | 2008-09-04 14:03:19 +0200 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-09-04 14:36:09 +0200 |
commit | 7ba28726150f5d4ee3b3cb676d6b73cc3b62e186 (patch) | |
tree | 31080b916ee83653d58bc0d76397b28d884ae6d0 /activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb | |
parent | f54be2cb3105856dc1fb31afc6c9012a91e53823 (diff) | |
download | rails-7ba28726150f5d4ee3b3cb676d6b73cc3b62e186.tar.gz rails-7ba28726150f5d4ee3b3cb676d6b73cc3b62e186.tar.bz2 rails-7ba28726150f5d4ee3b3cb676d6b73cc3b62e186.zip |
Deprecate verification_timeout and verify before reset
Signed-off-by: Michael Koziarski <michael@koziarski.com>
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb b/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb index 417a333aab..a968fc0fd3 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb @@ -7,11 +7,6 @@ module ActiveRecord end end - # Check for activity after at least +verification_timeout+ seconds. - # Defaults to 0 (always check.) - cattr_accessor :verification_timeout, :instance_writer => false - @@verification_timeout = 0 - # The connection handler cattr_accessor :connection_handler, :instance_writer => false @@connection_handler = ConnectionAdapters::ConnectionHandler.new @@ -101,6 +96,16 @@ module ActiveRecord ActiveSupport::Deprecation.warn("ActiveRecord::Base.allow_concurrency= has been deprecated and no longer has any effect. Please remove all references to allow_concurrency=.") end + # Deprecated and no longer has any effect. + def verification_timeout + ActiveSupport::Deprecation.warn("ActiveRecord::Base.verification_timeout has been deprecated and no longer has any effect. Please remove all references to verification_timeout.") + end + + # Deprecated and no longer has any effect. + def verification_timeout=(flag) + ActiveSupport::Deprecation.warn("ActiveRecord::Base.verification_timeout= has been deprecated and no longer has any effect. Please remove all references to verification_timeout=.") + end + # Returns the connection currently associated with the class. This can # also be used to "borrow" the connection to do database work unrelated # to any of the specific Active Records. |