Sha256: 65e1ab115166a1f5c48fd138178af46ef28e25e4f7c4d1eb87ad7003ce17c575

Contents?: true

Size: 485 Bytes

Versions: 7

Compression:

Stored size: 485 Bytes

Contents

require 'rails/generators'

module Dbla
  class ModelsGenerator < Rails::Generators::Base
    include Rails::Generators::Migration

    source_root File.expand_path('../templates', __FILE__)

    desc """
This generator makes the following changes to your application:
 1. Creates the Item and Collection in your /app/models directory
"""
    def create_models
      template "item.rb", "app/models/item.rb"
      template "collection.rb", "app/models/collection.rb"
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dbla-0.0.8 lib/generators/dbla/models_generator.rb
dbla-0.0.7 lib/generators/dbla/models_generator.rb
dbla-0.0.6 lib/generators/dbla/models_generator.rb
dbla-0.0.5 lib/generators/dbla/models_generator.rb
dbla-0.0.4 lib/generators/dbla/models_generator.rb
dbla-0.0.3 lib/generators/dbla/models_generator.rb
dbla-0.0.2 lib/generators/dbla/models_generator.rb