view app/controllers/application_controller.rb @ 418:a69dd2d37950

Prevent adding unrelated classes and funny characters
author nanaya <me@myconan.net>
date Thu, 17 Sep 2015 01:13:14 +0900
parents dff632a63ada
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