Skip to content

Conversation

@brunozrk
Copy link
Member

Quando atualizei a gem no dog, começou a dar o seguinte erro:

https://app.honeybadger.io/projects/64400/faults/117748646

PR: https://github.com/petlove/dog/pull/1222/

não entendi muito bem, mas parece que em algum momento o obj está nil, e da maneira que era antes, ele tentava chamar o método no objeto nil

send(:after_commit, lambda(&:event_notificator_notify!))

da forma que está agora, ele só chama quando não está nil

        send(:after_commit, lambda { |obj|
          obj.event_notificator_notify!
        })

@brunozrk brunozrk merged commit 4a4fd0b into master Mar 6, 2025
2 checks passed
@brunozrk brunozrk deleted the fix_argument_error branch March 6, 2025 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants