Class: Alchemy::Devise::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Alchemy::Devise::Generators::InstallGenerator
- Defined in:
- lib/generators/alchemy/devise/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_migrations ⇒ Object
12 13 14 |
# File 'lib/generators/alchemy/devise/install/install_generator.rb', line 12 def add_migrations run "bundle exec rake alchemy_devise:install:migrations" end |
#copy_devise_config ⇒ Object
8 9 10 |
# File 'lib/generators/alchemy/devise/install/install_generator.rb', line 8 def copy_devise_config template "devise.rb.tt", "config/initializers/devise.rb" end |
#run_migrations ⇒ Object
16 17 18 |
# File 'lib/generators/alchemy/devise/install/install_generator.rb', line 16 def run_migrations run "bundle exec rake db:migrate" end |