post versions: remove dead check_for_retry method.

This commit is contained in:
evazion
2020-08-13 02:24:13 -05:00
parent 70f345fd7b
commit cbadfb3817

View File

@@ -15,12 +15,6 @@ class PostVersion < ApplicationRecord
establish_connection database_url if enabled?
def self.check_for_retry(msg)
if msg =~ /can't get socket descriptor/ && msg =~ /post_versions/
connection.reconnect!
end
end
module SearchMethods
def changed_tags_include(tag)
where_array_includes_all(:added_tags, [tag]).or(where_array_includes_all(:removed_tags, [tag]))