Plugin development-- Event fired if email address is changed?

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
12 Likes