From 4cd12f613224c5e6cb743bc044b21d52c1617838 Mon Sep 17 00:00:00 2001 From: Matchu Date: Wed, 25 Oct 2023 12:51:16 -0700 Subject: [PATCH] Delete unused FragmentExpiration module --- app/models/fragment_expiration.rb | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 app/models/fragment_expiration.rb diff --git a/app/models/fragment_expiration.rb b/app/models/fragment_expiration.rb deleted file mode 100644 index 8d14a8f6..00000000 --- a/app/models/fragment_expiration.rb +++ /dev/null @@ -1,25 +0,0 @@ -module FragmentExpiration - include FragmentLocalization - - delegate :expire_fragment, :to => :controller - - def expire_fragment_in_all_locales(key) - I18n.usable_locales.each do |locale| - localized_key = localize_fragment_key(key, locale) - expire_fragment(localized_key) - end - end - - def expire_key_in_all_locales(key) - I18n.usable_locales.each do |locale| - localized_key = localize_fragment_key(key, locale) - Rails.cache.delete(localized_key) - end - end - - private - - def controller - @controller ||= ActionController::Base.new - end -end