view app/controllers/application_controller.rb @ 474:389d2f995010

Update to bundler 2
author nanaya <me@nanaya.pro>
date Thu, 30 Apr 2020 03:54:21 +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