Class: Hancock::Catalog::Models::AllGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/hancock/catalog/models/all_generator.rb

Instance Method Summary collapse

Instance Method Details

#allObject



12
13
14
15
16
17
# File 'lib/generators/hancock/catalog/models/all_generator.rb', line 12

def all
  generate "hancock:catalog:models:item #{camelcased_class_name}"
  generate "hancock:catalog:models:category #{category_class_name}"
  generate "hancock:catalog:models:item_image #{image_class_name}"
  generate "hancock:catalog:models:category_image #{category_image_class_name}"
end