aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails_generator/options.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails_generator/options.rb b/railties/lib/rails_generator/options.rb
index df9737f13f..fe80f8340d 100644
--- a/railties/lib/rails_generator/options.rb
+++ b/railties/lib/rails_generator/options.rb
@@ -96,8 +96,8 @@ module Rails
# Raise a usage error. Override usage_message to provide a blurb
# after the option parser summary.
- def usage
- raise UsageError, "#{@option_parser}\n#{usage_message}"
+ def usage(message = usage_message)
+ raise UsageError, "#{@option_parser}\n#{message}"
end
def usage_message