Class: DryCrudGeneratorBase
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- DryCrudGeneratorBase
show all
- Defined in:
- lib/generators/dry_crud/dry_crud_generator_base.rb
Overview
Generates all dry crud files
Class Method Summary
collapse
Class Method Details
.gem_root ⇒ Object
9
10
11
|
# File 'lib/generators/dry_crud/dry_crud_generator_base.rb', line 9
def self.gem_root
File.join(File.dirname(__FILE__), '..', '..', '..')
end
|
.source_paths ⇒ Object
13
14
15
16
|
# File 'lib/generators/dry_crud/dry_crud_generator_base.rb', line 13
def self.source_paths
[gem_root,
template_root]
end
|
.template_root ⇒ Object
5
6
7
|
# File 'lib/generators/dry_crud/dry_crud_generator_base.rb', line 5
def self.template_root
File.join(File.dirname(__FILE__), 'templates')
end
|