Sergio Cambra
Sergio Cambra
confirmation request shouldn't be allowed for users which didn't accept invitation yet
Can you remove backtrace silencers and provide a backtrace?
It isn't expected behaviour, indeed run_callbacks :invitation_created it's called inside @user.invite! method, I don't know why it wasn't called for you. What version are you using? I don't remember if...
confirm_within is a confirmable setting, similar setting for devise invitable is named invite_for
@frankis You only have to disable registrations and set a limit on invitations
That case is tested here and it works: https://github.com/scambra/devise_invitable/blob/master/test/models/invitable_test.rb#L194 Did you override some method in model, or controller or view?
You could try to update devise_invitable, although I think nothing related has changed since 1.3.5 I have checked accept_invitation! method and find_by_invitation_token and original token is restored after find, so...
@aruprakshit did you change something on controller? I don't see failing in tests. Also, I don't think you need this value: f.object.invitation_token, although it shouldn't change anything
I don't know why rails doesn't display the hidden field, as you see, devise invitable is setting field on f.object
With devise, you can use different models for user and admin,in that case, you can enable invitations for both models. If using only one model, you need to override invite_resource...