annotate app/controllers/application_controller.rb @ 383:af27800e9a0d

As it turned out delegating with `.click` doesn't work.
author nanaya <me@myconan.net>
date Sun, 07 Jun 2015 02:57:41 +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