Class: Authorio::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Authorio::InstallGenerator
- Defined in:
- lib/generators/authorio/install/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_paths ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/generators/authorio/install/install_generator.rb', line 5 def self.source_paths paths = [] paths << File.('../templates', "../../#{__FILE__}") paths << File.('../templates', "../#{__FILE__}") paths << File.('templates', __dir__) paths.flatten end |
Instance Method Details
#add_files ⇒ Object
13 14 15 |
# File 'lib/generators/authorio/install/install_generator.rb', line 13 def add_files template 'authorio.rb', 'config/initializers/authorio.rb' end |