diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-10-09 00:11:46 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-10-09 00:11:46 +0000 |
commit | f1a2dee97659b616e59a2a9193f49b3b56fcd1f9 (patch) | |
tree | 66874586ea90f86a3a100d8c1f7c579f55ff831b /railties | |
parent | c16a4379caaa9e086aeeb58a9194e511c40921d9 (diff) | |
download | rails-f1a2dee97659b616e59a2a9193f49b3b56fcd1f9.tar.gz rails-f1a2dee97659b616e59a2a9193f49b3b56fcd1f9.tar.bz2 rails-f1a2dee97659b616e59a2a9193f49b3b56fcd1f9.zip |
Include field:type option for models
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5237 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails_generator/generators/components/model/model_generator.rb | 4 | ||||
-rw-r--r-- | railties/lib/rails_generator/generators/components/resource/resource_generator.rb | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/railties/lib/rails_generator/generators/components/model/model_generator.rb b/railties/lib/rails_generator/generators/components/model/model_generator.rb index e242482632..9f4b15d392 100644 --- a/railties/lib/rails_generator/generators/components/model/model_generator.rb +++ b/railties/lib/rails_generator/generators/components/model/model_generator.rb @@ -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:' diff --git a/railties/lib/rails_generator/generators/components/resource/resource_generator.rb b/railties/lib/rails_generator/generators/components/resource/resource_generator.rb index 67805436e9..34abc6c97b 100644 --- a/railties/lib/rails_generator/generators/components/resource/resource_generator.rb +++ b/railties/lib/rails_generator/generators/components/resource/resource_generator.rb @@ -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 |