class Notifly::Generators::InstallGenerator
Public Instance Methods
copy_config()
click to toggle source
# File lib/generators/notifly/install/install_generator.rb, line 17 def copy_config template 'config/initializers/notifly.rb' copy_file '../../../../../config/locales/en.yml', 'config/locales/notifly.en.yml' end
mount_engine()
click to toggle source
# File lib/generators/notifly/install/install_generator.rb, line 12 def mount_engine namespace = ask_for('Where do you want to mount Notifly?', 'notifly', namespace) route("mount Notifly::Engine => '/#{namespace}', as: 'notifly'") end
remember_to_install_migrations()
click to toggle source
# File lib/generators/notifly/install/install_generator.rb, line 22 def remember_to_install_migrations display 'Remember to install migrations: "rake notifly:install:migrations"', :red end