scambra/devise_invitable — pull request #514 by edelpero (2014-11-02 20:32:36+00:00)
Title: Moves yield around resource before checking if the invitation was successfully sent

The previous behavior only let to add behavior if the invitation was successfully sent.

With this fix, we can add a behavior when the invitation creation success or fails.

```ruby

def create
super do |resource|
if resource.errors.empty?
excecute_success_behavior
else
excecute_failure_behavior
end
end
end

```