Devise Inviteable
Add devise invitable.
Used 36 times
C
Curtis Ovard
Usage
Run this command to install and configure Devise Invitable.
Run this command in your Rails app directory in the terminal:
rails app:template LOCATION="https://railsbytes.com/script/VZgsJ0"
Template Source
Review the code before running this template on your machine.
run "bundle add devise_invitable"
run "bundle install"
rails_command "generate devise_invitable:install"
model = ask("What 'user' model do you want to generate invitable for? (ex. User)")
rails_command "generate devise_invitable #{model.capitalize}"
if yes?("Do you want to run migration?")
rails_command "db:migrate"
end