Class: Thredded::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Thredded::Generators::InstallGenerator
- Defined in:
- lib/generators/thredded/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_initializer_file ⇒ Object
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_paths ⇒ Object
6 7 8 9 10 11 |
# File 'lib/generators/thredded/install/install_generator.rb', line 6 def set_source_paths @source_paths = [ File.('templates', __dir__), File.('../../../..', __dir__), ] end |