warning -> warn

This commit is contained in:
yafeilee 2016-07-29 09:24:25 +08:00
parent c0ae414e8f
commit e7fb967d55
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ class CommentsController < ApplicationController
def create def create
unless request.xhr? unless request.xhr?
logger.warning 'attack action detected' logger.warn "attack action detected: #{params}"
redirect_to root_path redirect_to root_path
end end
cookies[:name] = comment_params[:name] cookies[:name] = comment_params[:name]