Sha256: 53ed2fe86f09f138bad300c06400aa8994e1defa46ae269bfdd158e7408b091d
Contents?: true
Size: 474 Bytes
Versions: 10
Compression:
Stored size: 474 Bytes
Contents
module Rails module Generators class MailFormGenerator < Rails::Generators::NamedBase def self.source_root @_mail_form_source_root ||= File.expand_path("../templates", __FILE__) end argument :attributes, :type => :array, :default => [], :banner => "field:type field:type" check_class_collision def create_model_file template 'model.rb', File.join('app/models', class_path, "#{file_name}.rb") end end end end
Version data entries
10 entries across 10 versions & 1 rubygems