diff options
author | Kir Shatrov <shatrov@me.com> | 2017-02-25 16:33:06 -0600 |
---|---|---|
committer | Kir Shatrov <shatrov@me.com> | 2017-02-25 16:33:06 -0600 |
commit | 08e781569aea7f0e084c169c70b452e337aa1b5f (patch) | |
tree | 0760eef837c92ebcda40693b663a6e06247fc002 /activerecord/lib | |
parent | d13bc5df902a2c82c3096b627830be97acbedf50 (diff) | |
download | rails-08e781569aea7f0e084c169c70b452e337aa1b5f.tar.gz rails-08e781569aea7f0e084c169c70b452e337aa1b5f.tar.bz2 rails-08e781569aea7f0e084c169c70b452e337aa1b5f.zip |
Deprecate AbstractAdapter#verify! with arguments
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_adapter.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb index fd11cab5c0..b66d3a2e14 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb @@ -439,6 +439,9 @@ module ActiveRecord # This is done under the hood by calling #active?. If the connection # is no longer active, then this method will reconnect to the database. def verify!(*ignored) + if ignored.size > 0 + ActiveSupport::Deprecation.warn("Passing arguments to #verify method of the connection has no affect and has been deprecated. Please remove all arguments from the #verify method call.") + end reconnect! unless active? end |