mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-18 13:45:59 +01:00
Use skip_before_action
instead of redefining action in AjaxController
This commit is contained in:
parent
420627f3ad
commit
a34a30349e
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue