aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2017-09-15 13:56:25 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2017-10-23 12:50:47 -0400
commit9c6ee1bed0292fc32c23dc1c68951ae64fc510be (patch)
treee65b37e20607eaef47106b31d4899ebc6fe95b31 /activerecord/lib
parentd6b779ecebe57f6629352c34bfd6c442ac8fba0e (diff)
downloadrails-9c6ee1bed0292fc32c23dc1c68951ae64fc510be.tar.gz
rails-9c6ee1bed0292fc32c23dc1c68951ae64fc510be.tar.bz2
rails-9c6ee1bed0292fc32c23dc1c68951ae64fc510be.zip
Remove deprecated arguments from `#verify!`
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract_adapter.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
index a848dacff3..e3aab8dad8 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
@@ -392,10 +392,7 @@ module ActiveRecord
# Checks whether the connection to the database is still active (i.e. not stale).
# 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 effect and has been deprecated. Please remove all arguments from the #verify method call.")
- end
+ def verify!
reconnect! unless active?
end