Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing extension in devise migration (invitable) #175

Closed
woyzeck opened this issue Apr 22, 2014 · 2 comments
Closed

Missing extension in devise migration (invitable) #175

woyzeck opened this issue Apr 22, 2014 · 2 comments

Comments

@woyzeck
Copy link

woyzeck commented Apr 22, 2014

The application template for devise generates a migration for the invitable module (if selected as an option), but the generated file lacks the rb-extension.

The generated file is...
20140422160630_devise_invitable_add_to_users

...while it should be...
20140422160630_devise_invitable_add_to_users.rb

This bug prevents the migration from being executed and thus leads to the following error upon login:
NameError - undefined local variable or method `invitation_token' for #User:0x007faebcf6e830:

@DanielKehoe
Copy link
Member

This is an issue with Rails 4.1.

See scambra/devise_invitable#447

It's been reported for devise_invitable but I don't believe they're released an updated gem.

@DanielKehoe
Copy link
Member

Closing this issue as I believe it is resolved in the most recent devise_invitable release. Someone will have to restore the option in the rails_apps_composer gem, though:

RailsApps/rails_apps_composer#303

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants