From a34a30349e329b9aec1acfde2bc18215025635e5 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Fri, 27 Jan 2023 23:16:01 +0100 Subject: [PATCH] Use `skip_before_action` instead of redefining action in `AjaxController` --- app/controllers/ajax_controller.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/controllers/ajax_controller.rb b/app/controllers/ajax_controller.rb index f6718de0..f5cc4ecd 100644 --- a/app/controllers/ajax_controller.rb +++ b/app/controllers/ajax_controller.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true class AjaxController < ApplicationController + skip_before_action :find_active_announcements before_action :build_response after_action :return_response @@ -92,10 +93,6 @@ class AjaxController < ApplicationController return_response end - def find_active_announcements - # We do not need announcements here - end - private def build_response