diff options
-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 |