mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
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:
@@ -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:'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user