I think something like this in plugin.rb will do
after_initialize do
add_model_callback(UserEmail, :after_commit, on: :update) do
# Group.add blablabla
end
end
I think something like this in plugin.rb will do
after_initialize do
add_model_callback(UserEmail, :after_commit, on: :update) do
# Group.add blablabla
end
end