Class: SimpleUser::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/simple_user/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_config_fileObject



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_migrationsObject



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