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
beforevalidate_emailprivatedefvalidate_email# ... some implementationend
But then I get the following error: Error: undefined local variable or method 'validate_email' for SaveUser.class. Could it be that the before_save-hook should be used?
# before validate_emailbefore_savevalidate_email
The text was updated successfully, but these errors were encountered:
Hello there,
I am not really facing an issue, so forgive me if I missed something. It is pretty minor.
I am writing a
Save::Operation
in which I want to validate an e-mail address. Following the example:website/src/actions/guides/database/validating-saving.cr
Line 339 in d56ea7f
, I would write it like this:
But then I get the following error:
Error: undefined local variable or method 'validate_email' for SaveUser.class
. Could it be that thebefore_save
-hook should be used?The text was updated successfully, but these errors were encountered: