annotate app/controllers/application_controller.rb @ 380:2ddd61aca2c8

I18n. And refactor paste privacy settings form.
author nanaya <me@myconan.net>
date Sun, 07 Jun 2015 02:45:49 +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