Class: Messaged::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_initializer_fileObject



11
12
13
14
15
# File 'lib/generators/messaged/install/install_generator.rb', line 11

def copy_initializer_file
  copy_file \
    'initializer.rb',
    'config/initializers/messaged.rb'
end

#set_source_pathsObject



4
5
6
7
8
9
# File 'lib/generators/messaged/install/install_generator.rb', line 4

def set_source_paths
  @source_paths = [
    File.expand_path('templates', __dir__),
    File.expand_path('../../../..', __dir__),
  ]
end