Devise: authentication_token column in user model is null

I just created a sample application with devise plugin installed. I have :token_authenticatable in my user model but for some reason when I create a user it creates it with authentication_token column as NULL.

It looks like you need to set u.ensure_authentication_token! when creating a new user to generate a token.

Am I missing something or I need to override devise's code?

7
задан JJD 18 January 2013 в 22:41
поделиться