From 1ea18f0c89c137b8396cc44d30a9783ce32bfe48 Mon Sep 17 00:00:00 2001 From: Julian Herrero Date: Wed, 2 Jan 2019 12:50:01 +0100 Subject: [PATCH] refactor - correct place for block variable --- app/helpers/content_blocks_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/content_blocks_helper.rb b/app/helpers/content_blocks_helper.rb index 6969bd7f1..23453219c 100644 --- a/app/helpers/content_blocks_helper.rb +++ b/app/helpers/content_blocks_helper.rb @@ -1,7 +1,7 @@ module ContentBlocksHelper def valid_blocks - options = SiteCustomization::ContentBlock::VALID_BLOCKS.map do - |key| [t("admin.site_customization.content_blocks.content_block.names.#{key}"), key] + options = SiteCustomization::ContentBlock::VALID_BLOCKS.map do |key| + [t("admin.site_customization.content_blocks.content_block.names.#{key}"), key] end Budget::Heading.allow_custom_content.each do |heading| options.push([heading.name, "hcb_#{heading.id}"])