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