From 1e3d6482ccf2fb885957419eff0c237a8aeccf13 Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Sat, 31 Dec 2016 19:17:12 +0100 Subject: Match Thor's `desc` signature. It can also take an options hash. --- railties/lib/rails/command/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib/rails/command') diff --git a/railties/lib/rails/command/base.rb b/railties/lib/rails/command/base.rb index 3f36c91c74..7ae190433a 100644 --- a/railties/lib/rails/command/base.rb +++ b/railties/lib/rails/command/base.rb @@ -22,7 +22,7 @@ module Rails # Tries to get the description from a USAGE file one folder above the command # root. - def desc(usage = nil, description = nil) + def desc(usage = nil, description = nil, options = {}) if usage super else -- cgit v1.2.3