Include field:type option for models

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5237 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson
2006-10-09 00:11:46 +00:00
parent c16a4379ca
commit f1a2dee976
2 changed files with 4 additions and 1 deletions

View File

@@ -25,6 +25,10 @@ class ModelGenerator < Rails::Generator::NamedBase
end
protected
def banner
"Usage: #{$0} generate ModelName [field:type, field:type]"
end
def add_options!(opt)
opt.separator ''
opt.separator 'Options:'

View File

@@ -75,7 +75,6 @@ class ResourceGenerator < Rails::Generator::NamedBase
end
protected
# Override with your own usage banner.
def banner
"Usage: #{$0} resource ModelName [field:type, field:type]"
end