lib/errdo/models/error_env_parser.rb in errdo-0.9.0 vs lib/errdo/models/error_env_parser.rb in errdo-0.9.1

- old
+ new

@@ -52,20 +52,16 @@ backtrace.first if backtrace.respond_to?(:first) end private - def dirty_words - %w(password passwd password_confirmation secret confirm_password secret_token) - end - def prepare_backtrace(env) env["action_dispatch.exception"].try(:backtrace) end def scrubbed_params(request) params = request.try(:params) - dirty_words.each do |word| + Errdo.dirty_words.each do |word| params[word] = "..." if params[word] end params end