From b20912c52e4580beb78873f9d38b8bca1b2ac689 Mon Sep 17 00:00:00 2001 From: Giga Chubinidze Date: Wed, 24 May 2023 02:54:05 +0400 Subject: [PATCH] removed unnecessary code --- app/controllers/concerns/breadcrumbs.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/controllers/concerns/breadcrumbs.rb b/app/controllers/concerns/breadcrumbs.rb index 151bbcd50..52377c252 100644 --- a/app/controllers/concerns/breadcrumbs.rb +++ b/app/controllers/concerns/breadcrumbs.rb @@ -67,9 +67,4 @@ module Breadcrumbs archived: my_module.archived? }) end - - def archived_state - archived_exists = @breadcrumbs_items.any? { |item| item[:archived] } - archived_exists || request.fullpath.include?('archived') - end end