Class: SimpleUser::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- SimpleUser::Generators::InstallGenerator
- Defined in:
- lib/generators/simple_user/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_config_file ⇒ Object
7 8 9 10 11 |
# File 'lib/generators/simple_user/install/install_generator.rb', line 7 def copy_config_file copy_file "fb_config.yml", "config/fb_config.yml" copy_file "devise_config.yml", "config/devise_config.yml" copy_file "simple_user.yml", "config/simple_user.yml" end |
#copy_migrations ⇒ Object
13 14 15 16 |
# File 'lib/generators/simple_user/install/install_generator.rb', line 13 def copy_migrations rake "simple_user:install:migrations" SimpleUser::Engine.load_seed end |