Sha256: ca7dd95ab7c32ac030585972267bafb76f4bdd0bcbc9fbbb47ed9c5fbabea09c
Contents?: true
Size: 489 Bytes
Versions: 4
Compression:
Stored size: 489 Bytes
Contents
module Bowline::Generators class ModelGenerator < NamedGenerator desc <<-DESC Generates a new model. DESC def class_name super + " < SuperModel::Base" end def modules [] end first_argument :name, :required => true, :desc => "model name" template :model do |template| template.source = "model.rb" template.destination = "app/models/#{file_name}.rb" end end add :model, ModelGenerator end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
bowline-0.9.4 | lib/bowline/generators/model.rb |
bowline-0.9.3 | lib/bowline/generators/model.rb |
bowline-0.9.2 | lib/bowline/generators/model.rb |
bowline-0.9.1 | lib/bowline/generators/model.rb |