Permalink
Browse files

Use ancestors.

  • Loading branch information...
ioquatix committed Jun 17, 2017
1 parent d9640ba commit 6ef8b09b7841d81f22b3b4d0417087e4643145d4
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/guard/plugin_util.rb
View
@@ -55,7 +55,7 @@ def initialize(name)
def initialize_plugin(options)
klass = plugin_class
fail "Could not load class: #{_constant_name.inspect}" unless klass
if klass.superclass.eql?(Guard)
if klass.ancestors.include?(Guard)
klass.new(options.delete(:watchers), options)
else
begin

0 comments on commit 6ef8b09

Please sign in to comment.