Class: FavoriteIt::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_configObject



7
8
9
# File 'lib/generators/favorite_it/install/install_generator.rb', line 7

def copy_config
  template "config/initializers/favorite_it.rb"
end

#copy_migrationsObject



4
5
6
# File 'lib/generators/favorite_it/install/install_generator.rb', line 4

def copy_migrations
  rake("favorite_it_engine:install:migrations")
end

#display_configObject



11
12
13
# File 'lib/generators/favorite_it/install/install_generator.rb', line 11

def display_config
  say "Please edit config/initializers/favorite_it.rb to your needs."
end