Class: Spree::ModelGenerator
- Inherits:
-
ActiveRecord::Generators::ModelGenerator
- Object
- ActiveRecord::Generators::ModelGenerator
- Spree::ModelGenerator
- Defined in:
- lib/generators/spree/model/model_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#create_module_file ⇒ Object
Override to prevent module file from being created.
Class Method Details
.source_paths ⇒ Object
6 7 8 9 10 |
# File 'lib/generators/spree/model/model_generator.rb', line 6 def self.source_paths paths = superclass.source_paths paths << File.('templates', __dir__) paths.flatten end |
Instance Method Details
#create_module_file ⇒ Object
Override to prevent module file from being created
17 18 19 |
# File 'lib/generators/spree/model/model_generator.rb', line 17 def create_module_file return end |