Skip to content

Commit

Permalink
Remove unnecessary dependency on Thor::Group
Browse files Browse the repository at this point in the history
  • Loading branch information
rleber committed Jun 18, 2011
1 parent 95b3986 commit facc819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/thor.rb
Expand Up @@ -26,7 +26,7 @@ def default_task(meth=nil)
# usage<String>:: Short usage for the subcommand
# description<String>:: Description for the subcommand
def register(klass, subcommand_name, usage, description, options={})
if klass <= Thor::Group
if Thor.const_defined?(:Group) && klass <= Thor::Group
desc usage, description, options
define_method(subcommand_name) { invoke klass }
else
Expand Down

0 comments on commit facc819

Please sign in to comment.