Class: Omail::InstallGenerator

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

Overview

install generator class to add initializer file

Instance Method Summary collapse

Instance Method Details

#copy_initializerObject



10
11
12
13
14
# File 'lib/generators/omail/install_generator.rb', line 10

def copy_initializer
  say "copying initializer", :green
  template("omail.rb", "config/initializers/omail.rb")
  append_to_file ".gitignore", "config/initializers/omail.rb\n"
end