refactor - correct place for block variable

This commit is contained in:
Julian Herrero
2019-01-02 12:50:01 +01:00
parent c5a7492128
commit 1ea18f0c89

View File

@@ -1,7 +1,7 @@
module ContentBlocksHelper module ContentBlocksHelper
def valid_blocks def valid_blocks
options = SiteCustomization::ContentBlock::VALID_BLOCKS.map do options = SiteCustomization::ContentBlock::VALID_BLOCKS.map do |key|
|key| [t("admin.site_customization.content_blocks.content_block.names.#{key}"), key] [t("admin.site_customization.content_blocks.content_block.names.#{key}"), key]
end end
Budget::Heading.allow_custom_content.each do |heading| Budget::Heading.allow_custom_content.each do |heading|
options.push([heading.name, "hcb_#{heading.id}"]) options.push([heading.name, "hcb_#{heading.id}"])