From a0b58fdc2fde8a0ceab259a605dc6a9743860250 Mon Sep 17 00:00:00 2001 From: Torsten Date: Wed, 21 Dec 2022 00:32:57 +0200 Subject: [PATCH] minor --- app/controllers/merged/pages_controller.rb | 1 + app/controllers/merged/view_controller.rb | 1 - app/helpers/merged/view_helper.rb | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/merged/pages_controller.rb b/app/controllers/merged/pages_controller.rb index 585ac0b..9cc5cef 100644 --- a/app/controllers/merged/pages_controller.rb +++ b/app/controllers/merged/pages_controller.rb @@ -1,5 +1,6 @@ module Merged class PagesController < MergedController + before_action :set_page, only: %i[ update destroy show ] def index diff --git a/app/controllers/merged/view_controller.rb b/app/controllers/merged/view_controller.rb index 927ae7e..a58b9eb 100644 --- a/app/controllers/merged/view_controller.rb +++ b/app/controllers/merged/view_controller.rb @@ -1,6 +1,5 @@ module Merged class ViewController < ::ApplicationController - include MergedHelper def view @page = Page.find_by_name(params[:id]) diff --git a/app/helpers/merged/view_helper.rb b/app/helpers/merged/view_helper.rb index 59de1e6..c89fd60 100644 --- a/app/helpers/merged/view_helper.rb +++ b/app/helpers/merged/view_helper.rb @@ -1,6 +1,5 @@ module Merged module ViewHelper - include OptionsHelper include MergedHelper # background image as inline style