annotate app/controllers/application_controller.rb @ 402:a18e19139f57

Markdown preview \o/
author nanaya <me@myconan.net>
date Sun, 06 Sep 2015 04:20:50 +0900
parents dff632a63ada
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1 class ApplicationController < ActionController::Base
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
2 protect_from_forgery
297
dff632a63ada Basic spam filtering.
edogawaconan <me@myconan.net>
parents: 0
diff changeset
3 before_action :filter_spam
dff632a63ada Basic spam filtering.
edogawaconan <me@myconan.net>
parents: 0
diff changeset
4
dff632a63ada Basic spam filtering.
edogawaconan <me@myconan.net>
parents: 0
diff changeset
5 private
dff632a63ada Basic spam filtering.
edogawaconan <me@myconan.net>
parents: 0
diff changeset
6
dff632a63ada Basic spam filtering.
edogawaconan <me@myconan.net>
parents: 0
diff changeset
7 def filter_spam
dff632a63ada Basic spam filtering.
edogawaconan <me@myconan.net>
parents: 0
diff changeset
8 head :ok if params[:url1].present?
dff632a63ada Basic spam filtering.
edogawaconan <me@myconan.net>
parents: 0
diff changeset
9 end
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
10 end