Class: Upgrow::Generators::RepositoryGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Upgrow::Generators::RepositoryGenerator
- Includes:
- Helper
- Defined in:
- lib/generators/upgrow/repository/repository_generator.rb
Instance Method Summary collapse
Methods included from Helper
#class_name, included, #module_namespacing, #move_file, #namespace_content
Instance Method Details
#create_repository_file ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/generators/upgrow/repository/repository_generator.rb', line 10 def create_repository_file template( 'repository.rb', File.join('app/repositories', class_path, "#{file_name}_repository.rb") ) end |