From 30befbc08aaf5d3e3f6913b4cd84b077bb12c6ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 18 Jul 2023 13:17:57 +0200 Subject: [PATCH] Remove obsolete code about banner images and styles We forgot to remove it in commit 8066b96fe. We're removing it now because these methods didn't follow the Layout/BlockAlignment rubocop rule, which we're about to add. --- app/controllers/admin/banners_controller.rb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/controllers/admin/banners_controller.rb b/app/controllers/admin/banners_controller.rb index c795b4b33..72b085a5d 100644 --- a/app/controllers/admin/banners_controller.rb +++ b/app/controllers/admin/banners_controller.rb @@ -47,18 +47,6 @@ class Admin::BannersController < Admin::BaseController web_section_ids: []] end - def banner_styles - @banner_styles = Setting.all.banner_style.map do |banner_style| - [banner_style.value, banner_style.key.split(".")[1]] - end - end - - def banner_imgs - @banner_imgs = Setting.all.banner_img.map do |banner_img| - [banner_img.value, banner_img.key.split(".")[1]] - end - end - def banner_sections @banner_sections = WebSection.all end