Mercurial > zeropaste
comparison app/controllers/application_controller.rb @ 297:dff632a63ada
Basic spam filtering.
author | edogawaconan <me@myconan.net> |
---|---|
date | Wed, 12 Feb 2014 14:27:17 +0900 |
parents | 4aa8194a1733 |
children |
comparison
equal
deleted
inserted
replaced
296:59be20065799 | 297:dff632a63ada |
---|---|
1 class ApplicationController < ActionController::Base | 1 class ApplicationController < ActionController::Base |
2 protect_from_forgery | 2 protect_from_forgery |
3 before_action :filter_spam | |
4 | |
5 private | |
6 | |
7 def filter_spam | |
8 head :ok if params[:url1].present? | |
9 end | |
3 end | 10 end |