Permalink
Browse files

Initialize @no_tests in inherited hook

  • Loading branch information...
1 parent 7416806 commit 7bd6460fb82bfce35285398f9f271cd225d780f6 @gazay gazay committed Jun 20, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/thor/base.rb
View
@@ -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

0 comments on commit 7bd6460

Please sign in to comment.