Class: ActiveNotifier::Generators::InstallGenerator

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

Overview

ActiveNotifier generator for Rails application

Instance Method Summary collapse

Instance Method Details

#copy_initializerObject


8
9
10
# File 'lib/generators/active_notifier/install_generator.rb', line 8

def copy_initializer
  template "generators/active_notifier/templates/active_notifier.rb", "config/initializers/active_notifier.rb"
end

#copy_templatesObject


12
13
14
# File 'lib/generators/active_notifier/install_generator.rb', line 12

def copy_templates
  directory "active_notifier/templates", "app/views/active_notifier"
end