You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you accidentally type before_delete instead of before_save, your code will compile and run just fine, but it won't run that callback which could lead to weird issues at runtime.
I'd imagine it would be better to raise a compile-time error telling you that you're using the wrong callbacks.
The text was updated successfully, but these errors were encountered:
Related: #898
If you accidentally type
before_delete
instead ofbefore_save
, your code will compile and run just fine, but it won't run that callback which could lead to weird issues at runtime.I'd imagine it would be better to raise a compile-time error telling you that you're using the wrong callbacks.
The text was updated successfully, but these errors were encountered: