Sha256: eca4c6d9af3c612b3a7a29544a009aff864e542712baea2c98ea4d26e8679716
Contents?: true
Size: 465 Bytes
Versions: 4
Compression:
Stored size: 465 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
4 entries across 4 versions & 1 rubygems