Moves redirect_timestamp_spam to AppController

This commit is contained in:
kikito
2016-04-26 17:26:47 +02:00
parent 289182b145
commit 7adc706d23
3 changed files with 3 additions and 8 deletions

View File

@@ -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

View File

@@ -54,8 +54,4 @@ class DebatesController < ApplicationController
Debate
end
def redirect_timestamp_spam
redirect_to root_path, notice: InvisibleCaptcha.timestamp_error_message
end
end

View File

@@ -72,8 +72,4 @@ class SpendingProposalsController < ApplicationController
target
end
def redirect_timestamp_spam
redirect_to root_path, notice: InvisibleCaptcha.timestamp_error_message
end
end