aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails_generator/generators/components/model/model_generator.rb2
1 files changed, 1 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 fccf30211a..dc33786b72 100644
--- a/railties/lib/rails_generator/generators/components/model/model_generator.rb
+++ b/railties/lib/rails_generator/generators/components/model/model_generator.rb
@@ -29,7 +29,7 @@ class ModelGenerator < Rails::Generator::NamedBase
protected
def banner
- "Usage: #{$0} generate ModelName [field:type, field:type]"
+ "Usage: #{$0} #{spec.name} ModelName [field:type, field:type]"
end
def add_options!(opt)