luckyframework/avram

Operation callbacks are missing the conditional arguments

Aperta

#1066 aperta il 25 set 2024

 (0 commenti) (0 reazioni) (0 assegnatari)Crystal (67 fork)auto 404
hacktoberfest

Metriche repository

Star
 (180 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor