Is there such a thing as after attach callback (on associations)? #2041
Unanswered
glaucocustodio
asked this question in
Help
Replies: 2 comments 2 replies
-
Not at the moment, but we'd support a PR to have this feature added. Something similar can be done with detaching, right? |
Beta Was this translation helpful? Give feedback.
2 replies
-
BTW, does Rails have anything like that? I feel that it should be a Rails feature rather than Avo feature. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Given:
Does Avo provide a callback that gets triggered once an organisation has been attached to a user (or when a user has been attached to an organisation)?
I think of something like:
We could have an
after_commit :send_email, on: :create
on theMembership
model but in this case we don't know whether or not the creation is happening through Avo.Beta Was this translation helpful? Give feedback.
All reactions