Adds setting to enable or disable help page
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user