Remove unused method

This method was not used since commit d0245059.
This commit is contained in:
Javi Martín
2019-06-22 21:25:27 +02:00
parent e64289c5f9
commit 3a2818ece5

View File

@@ -13,10 +13,6 @@ class Geozone < ApplicationRecord
Geozone.pluck(:name)
end
def self.city
where(name: "city").first
end
def safe_to_destroy?
Geozone.reflect_on_all_associations(:has_many).all? do |association|
association.klass.where(geozone: self).empty?