Mercurial > zeropaste
view 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 |
line wrap: on
line source
class ApplicationController < ActionController::Base protect_from_forgery before_action :filter_spam private def filter_spam head :ok if params[:url1].present? end end