Add generator templates

This commit is contained in:
Eric 2020-05-01 12:54:10 -05:00
parent bb55aebee1
commit 42af7206ec
3 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,6 @@
# frozen_string_literal: true
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
class <%= class_name %>Generator < Rails::Generators::NamedBase
source_root File.expand_path('templates', __dir__)
end

View file

@ -0,0 +1,8 @@
Description:
Explain the generator
Example:
bin/rails generate <%= file_name %> Thing
This will create:
what/will/it/create