luckyframework/avram

Operation callbacks are missing the conditional arguments

Open

#1,066 opened on Sep 25, 2024

 (0 comments) (0 reactions) (0 assignees)Crystal (67 forks)auto 404
hacktoberfest

Repository metrics

Stars
 (180 stars)
PR merge metrics
 (PR metrics pending)

Description

https://github.com/luckyframework/avram/blob/bb63db88513b05e80030a4c61c9ef48b0ea12dbe/src/avram/callbacks.cr#L97C9-L97C19

With SaveOperation and DeleteOperation you can do before_save :do_thing, if: :valid?, but this doesn't work for before_run or after_run

Contributor guide