Class: Dbla::ModelsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/dbla/models_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_modelsObject



13
14
15
16
# File 'lib/generators/dbla/models_generator.rb', line 13

def create_models
  template "item.rb", "app/models/item.rb"
  template "collection.rb", "app/models/collection.rb"
end