scambra/devise_invitable — pull request #141 by cambridgemike (2011-11-11 04:19:23+00:00)
Title: Adds a callback event for when a user accepts an invite

A few comments

1. I added tests, but they are a little brute force. If you want me to write tests more in line with how you do things just let me know.

2. I'm not sure the callback block wraps the correct lines. For instance, if the accept_invitation fails, shouldn't the after callback not be fired?

3. It's worth pointing out that to the callback method is set like
set_callback :invitation_accepted, :after, :method_for_your_callback_goodness
instead of the usual before_create, etc