Adds setting to enable or disable help page

This commit is contained in:
decabeza
2018-09-28 18:59:28 +02:00
parent 2c22ab347d
commit dd11a040a6
7 changed files with 48 additions and 8 deletions

View File

@@ -1,6 +1,9 @@
class PagesController < ApplicationController
include FeatureFlags
skip_authorization_check
feature_flag :help_page, if: lambda { params[:id] == "help/index" }
def show
@custom_page = SiteCustomization::Page.published.find_by(slug: params[:id])
@banners = Banner.in_section('help_page').with_active