From 1c818850d2f0a483595574bb1de0d4c0e2f75e90 Mon Sep 17 00:00:00 2001 From: Ziyan Junaideen Date: Mon, 23 Jul 2018 12:34:15 +0530 Subject: [PATCH] Content blocks for navigation --- app/models/site_customization/content_block.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/site_customization/content_block.rb b/app/models/site_customization/content_block.rb index c08beb52e..81cd842fa 100644 --- a/app/models/site_customization/content_block.rb +++ b/app/models/site_customization/content_block.rb @@ -1,5 +1,5 @@ class SiteCustomization::ContentBlock < ActiveRecord::Base - VALID_BLOCKS = %w(top_links footer) + VALID_BLOCKS = %w(top_links footer subnavigation_before subnavigation_after) validates :locale, presence: true, inclusion: { in: I18n.available_locales.map(&:to_s) } validates :name, presence: true, uniqueness: { scope: :locale }, inclusion: { in: VALID_BLOCKS }