Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
amkisko committed Oct 29, 2024
2 parents e9e0f50 + 9b25564 commit 6b45e35
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,21 @@ ActionReporter.context(entry_id: entry.id)
ActionReporter.notify('Something went wrong', context: { record: record })
```

## Hook debugger to notify method

Apply patch on initializer level or before running the main code:

```ruby
module ActionReporter
class RailsReporter < Base
def notify(error, context: {})
super
binding.pry
end
end
end
```

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/amkisko/action_reporter.rb
Expand Down

0 comments on commit 6b45e35

Please sign in to comment.