Moves redirect_timestamp_spam to AppController
This commit is contained in:
@@ -115,4 +115,7 @@ class ApplicationController < ActionController::Base
|
||||
end
|
||||
end
|
||||
|
||||
def redirect_timestamp_spam
|
||||
redirect_to root_path, notice: InvisibleCaptcha.timestamp_error_message
|
||||
end
|
||||
end
|
||||
|
||||
@@ -54,8 +54,4 @@ class DebatesController < ApplicationController
|
||||
Debate
|
||||
end
|
||||
|
||||
def redirect_timestamp_spam
|
||||
redirect_to root_path, notice: InvisibleCaptcha.timestamp_error_message
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -72,8 +72,4 @@ class SpendingProposalsController < ApplicationController
|
||||
target
|
||||
end
|
||||
|
||||
def redirect_timestamp_spam
|
||||
redirect_to root_path, notice: InvisibleCaptcha.timestamp_error_message
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user