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