OSDN Git Service

ログにパスワードを残さない
[praisedb/praisedb.git] / app / controllers / application_controller.rb
index f4ce653..8b8ec10 100644 (file)
@@ -5,9 +5,7 @@ class ApplicationController < ActionController::Base
   helper :all # include all helpers, all the time
   protect_from_forgery # See ActionController::RequestForgeryProtection for details
   before_filter :authenticate
-
-  # Scrub sensitive parameters from your log
-  # filter_parameter_logging :password
+  filter_parameter_logging :password
 
   def authenticate
     authenticate_or_request_with_http_basic do |user_name, password|