Will an ActiveRecord before_create
callback run with Rodauth?
#266
Samuelodan
started this conversation in
General
Replies: 1 comment 1 reply
-
Rodauth doesn't use Active Record, so it will not run any callbacks or validations on the model. For UUIDs, you can generate one in a Rodauth hook: before_create_account do
account[:id] = UUID7.generate
end |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there, I'm considering adding support for UUID V7 in my application with the implementation below:
Do you think this callback will get triggered automatically after sign-up with rodauth-rails?
Beta Was this translation helpful? Give feedback.
All reactions