Skip to content

Commit 9f1d6b5

Browse files
authored
fix: add []= delegator (#590)
This allows code that updates the payload in a before_event block to look a little nicer. :)
1 parent 1e047bb commit 9f1d6b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/honeybadger/event.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Event
1313
# The payload data of the event
1414
attr_reader :payload
1515

16-
def_delegator :payload, :[]
16+
def_delegators :payload, :[], :[]=
1717

1818
# @api private
1919
def initialize(event_type_or_payload, payload={})

0 commit comments

Comments
 (0)