Tuesday, February 16, 2016

Filter out sensitive parameters from logging file in Rails 4.2.5

Create filter_parameter_logging.rb in config/initializers folder:

Rails.application.config.filter_parameters += [:password, :password_confirmation]