lib/guard/plugin.rb in guard-2.9.1 vs lib/guard/plugin.rb in guard-2.9.2
- old
+ new
@@ -291,10 +291,10 @@
# Add all the Guard::Plugin's callbacks to the global @callbacks array
# that's used by Guard to know which callbacks to notify.
#
def _register_callbacks
callbacks.each do |callback|
- Hooker.add_callback(callback[:listener], self, callback[:events])
+ self.class.add_callback(callback[:listener], self, callback[:events])
end
end
end
end