Class: Spree::ModelGenerator

Inherits:
ActiveRecord::Generators::ModelGenerator
  • Object
show all
Defined in:
lib/generators/spree/model/model_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_pathsObject



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.expand_path('templates', __dir__)
  paths.flatten
end

Instance Method Details

#create_module_fileObject

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