Skip to content

Commit

Permalink
airbrake_initializer: update blacklist_keys to the new API
Browse files Browse the repository at this point in the history
This should've been in airbrake-5.2.0, but I forgot to update it :(
  • Loading branch information
kyrylo committed Mar 21, 2016
1 parent 2496ae9 commit 9d6c4c4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/generators/airbrake_initializer.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,14 @@ Airbrake.configure do |c|
# NOTE: This option *does not* work if you don't set the 'environment' option.
# https://github.com/airbrake/airbrake-ruby#ignore_environments
c.ignore_environments = %w(test)
end

# A list of parameters that should be filtered out of what is sent to Airbrake.
# By default, all "password" attributes will have their contents replaced.
# https://github.com/airbrake/airbrake-ruby#blacklist_keys
Airbrake.blacklist_keys(/password/i)

# A list of parameters that should be filtered out of what is sent to
# Airbrake. By default, all "password" attributes will have their contents
# replaced.
# https://github.com/airbrake/airbrake-ruby#blacklist_keys
c.blacklist_keys = [/password/i]
end

# If Airbrake doesn't send any expected exceptions, we suggest to uncomment the
# line below. It might simplify debugging of background Airbrake workers, which
Expand Down

0 comments on commit 9d6c4c4

Please sign in to comment.