Skip to content

Commit

Permalink
Initialize @no_tests in inherited hook
Browse files Browse the repository at this point in the history
  • Loading branch information
gazay authored and rleber committed Jul 3, 2011
1 parent 2b63499 commit dac3de4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/thor/base.rb
Expand Up @@ -506,6 +506,7 @@ def find_and_refresh_task(name) #:nodoc:
# and file into baseclass.
def inherited(klass)
Thor::Base.register_klass_file(klass)
klass.instance_variable_set(:@no_tasks, false)
end

# Fire this callback whenever a method is added. Added methods are
Expand Down

0 comments on commit dac3de4

Please sign in to comment.