annotate app/controllers/application_controller.rb @ 340:4b91c0c1938c

A more specific binding.
author edogawaconan <me@myconan.net>
date Wed, 28 May 2014 15:18: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