Skip to content

Commit

Permalink
Configure Airbrake to ignore AASM::InvalidTransition when triggered f…
Browse files Browse the repository at this point in the history
…rom a DeliveryReceiptUPdateStatusJob. #136
  • Loading branch information
dwilkie committed Jun 6, 2015
1 parent 9c6c9a2 commit bb453fe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/initializers/airbrake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@
config.host = ENV["AIRBRAKE_HOST"]
config.port = 443
config.secure = config.port == 443

config.ignore_by_filter do |exception_data|
exception_data["error_class"] == "AASM::InvalidTransition" &&
exception_data["class"] == "DeliveryReceiptUpdateStatusJob"
end
end

0 comments on commit bb453fe

Please sign in to comment.