Class: Uchi::RepositoryGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Uchi::RepositoryGenerator
- Defined in:
- lib/generators/uchi/repository/repository_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_repository_file ⇒ Object
7 8 9 10 |
# File 'lib/generators/uchi/repository/repository_generator.rb', line 7 def create_repository_file destination = File.join("app/uchi/repositories") template "repository.rb", File.join(destination, "#{file_name}.rb") end |
#generate_controller ⇒ Object
12 13 14 |
# File 'lib/generators/uchi/repository/repository_generator.rb', line 12 def generate_controller generate("uchi:controller", name) end |