Sha256: 84b62693aa7532aa24493637343aff4c66e99360f8e238ab61779adf95c0fbaf
Contents?: true
Size: 421 Bytes
Versions: 26
Compression:
Stored size: 421 Bytes
Contents
module Bowline::Generators class ModelGenerator < NamedGenerator desc <<-DESC Generates a new model. DESC 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
26 entries across 26 versions & 2 rubygems