Class: Thredded::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_initializer_fileObject


13
14
15
16
17
# File 'lib/generators/thredded/install/install_generator.rb', line 13

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

#set_source_pathsObject


6
7
8
9
10
11
# File 'lib/generators/thredded/install/install_generator.rb', line 6

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