Skip to content
Snippets Groups Projects
Commit bf6f10a7 authored by Samuel Williams's avatar Samuel Williams
Browse files

Use ancestors.

parent 4ab936bd
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -55,7 +55,7 @@ module Guard
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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment