refactor - correct place for block variable
This commit is contained in:
@@ -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}"])
|
||||
|
||||
Reference in New Issue
Block a user