Merge pull request #1005 from Retrospring/skip-announcements-in-ajax
This commit is contained in:
commit
999f599029
|
@ -1,6 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AjaxController < ApplicationController
|
class AjaxController < ApplicationController
|
||||||
|
skip_before_action :find_active_announcements
|
||||||
before_action :build_response
|
before_action :build_response
|
||||||
after_action :return_response
|
after_action :return_response
|
||||||
|
|
||||||
|
@ -92,10 +93,6 @@ class AjaxController < ApplicationController
|
||||||
return_response
|
return_response
|
||||||
end
|
end
|
||||||
|
|
||||||
def find_active_announcements
|
|
||||||
# We do not need announcements here
|
|
||||||
end
|
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def build_response
|
def build_response
|
||||||
|
|
Loading…
Reference in New Issue