Class: Autopilot::Generators::UsersGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Autopilot::Generators::UsersGenerator
- Defined in:
- lib/generators/autopilot/users_generator.rb
Instance Method Summary collapse
Instance Method Details
#do_magic ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/generators/autopilot/users_generator.rb', line 6 def do_magic puts "Setting up users & authentication..." gem "devise" Bundler.with_clean_env do run "bundle install" end generate "devise:install" generate "devise User" generate "devise:views" generate "migration AddDeletedAtToUsers deleted_at:datetime:index" end |