From f567d0307ee1b9659571073dc1a840ba93cf2212 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Thu, 12 Jan 2017 17:02:01 +0100 Subject: [PATCH] Fix includes [SCI-102] --- app/controllers/my_module_comments_controller.rb | 1 + app/controllers/project_comments_controller.rb | 1 + app/controllers/result_comments_controller.rb | 1 + app/controllers/step_comments_controller.rb | 1 + 4 files changed, 4 insertions(+) diff --git a/app/controllers/my_module_comments_controller.rb b/app/controllers/my_module_comments_controller.rb index 8b5a484ca..9882145d1 100644 --- a/app/controllers/my_module_comments_controller.rb +++ b/app/controllers/my_module_comments_controller.rb @@ -1,5 +1,6 @@ class MyModuleCommentsController < ApplicationController include ActionView::Helpers::TextHelper + include InputSanitizeHelper before_action :load_vars before_action :check_view_permissions, only: :index diff --git a/app/controllers/project_comments_controller.rb b/app/controllers/project_comments_controller.rb index c25dba8ab..669f220de 100644 --- a/app/controllers/project_comments_controller.rb +++ b/app/controllers/project_comments_controller.rb @@ -1,5 +1,6 @@ class ProjectCommentsController < ApplicationController include ActionView::Helpers::TextHelper + include InputSanitizeHelper before_action :load_vars before_action :check_view_permissions, only: :index diff --git a/app/controllers/result_comments_controller.rb b/app/controllers/result_comments_controller.rb index 505e22c3c..737096bdb 100644 --- a/app/controllers/result_comments_controller.rb +++ b/app/controllers/result_comments_controller.rb @@ -1,5 +1,6 @@ class ResultCommentsController < ApplicationController include ActionView::Helpers::TextHelper + include InputSanitizeHelper before_action :load_vars diff --git a/app/controllers/step_comments_controller.rb b/app/controllers/step_comments_controller.rb index 799c60e24..d9f2a6675 100644 --- a/app/controllers/step_comments_controller.rb +++ b/app/controllers/step_comments_controller.rb @@ -1,5 +1,6 @@ class StepCommentsController < ApplicationController include ActionView::Helpers::TextHelper + include InputSanitizeHelper before_action :load_vars