scambra/devise_invitable — comment on commit f8b283bb9f82a1118db268b5f5ad9bd6e0413b74
File: lib/devise_invitable/model.rb line 134
By bogn:

Shouldn't self.validate_on_invite be an independent statement, the way it currently stands there's no validation involved except for the save, which returns true as it is not a new record and this record is thus overwritten with the new attributes (in my case many).
For me it seems like the code should look something like the following:
self.valid? if self.validate_on_invite
if invitable.errors.empty?
yield invitable if block_given?
mail = invitable.invite!
end