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/lib/rails_generator/generators/components/model/model_generator.rb | |
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/lib/rails_generator/generators/components/model/model_generator.rb')
-rw-r--r-- | railties/lib/rails_generator/generators/components/model/model_generator.rb | 4 |
1 files changed, 4 insertions, 0 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:' |