Sha256: 42c02c3a196ba3582dd18266989b46b84f6f0b630b60399caee64fd037311d5e

Contents?: true

Size: 321 Bytes

Versions: 8

Compression:

Stored size: 321 Bytes

Contents

require 'rails_generator'

class ModelGenerator < Rails::Generator::Base
  def generate
    # Model class, unit test, and fixtures.
    template "model.rb", "app/models/#{file_name}.rb"
    template "unit_test.rb", "test/unit/#{file_name}_test.rb"
    template "fixtures.yml", "test/fixtures/#{table_name}.yml"
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
devise_sociable-0.1.0 vendor/bundle/gems/rails-0.9.5/generators/model/model_generator.rb
rails-0.9.2 generators/model/model_generator.rb
rails-0.9.1 generators/model/model_generator.rb
rails-0.9.0 generators/model/model_generator.rb
rails-0.9.4 generators/model/model_generator.rb
rails-0.9.3 generators/model/model_generator.rb
rails-0.9.4.1 generators/model/model_generator.rb
rails-0.9.5 generators/model/model_generator.rb