scambra/devise_invitable — comment on commit a7105842f77cfaf7a9f579a43f7d1a324ada8292
File: lib/devise_invitable/model.rb line 52
By Odaeus:

We aren't using the invitations controller except for accepting them. Our current model doesn't support the new behaviour because we don't always create user objects directly. For example, we create a GroupMembership object that accepts nested attributes for a new linked User, which then calls invite. See https://github.com/cyclestreets/toolkit/blob/master/app/models/group_membership.rb#L50 for our usage.

I don't fundamentally see why this is an invalid usage as the `User.invite!` class method doesn't really do much except call the `invite!` instance method. I think the validation logic could easily be pushed down into the instance method. I'll attempt to do this when I have the time, it's up to you if you accept the patch.

Thanks again for your help.