From 3a579efcd3ea7e4362f7abeb4138c4087e6f13c1 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Tue, 17 Apr 2012 18:06:24 +0100 Subject: Changed method of including the Debug notification module. Now debug! can be specified in the config to extend that particular instance of a notification method. --- lib/mauve/configuration_builders/notification_method.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/mauve/configuration_builders') diff --git a/lib/mauve/configuration_builders/notification_method.rb b/lib/mauve/configuration_builders/notification_method.rb index 9596587..3f9283e 100644 --- a/lib/mauve/configuration_builders/notification_method.rb +++ b/lib/mauve/configuration_builders/notification_method.rb @@ -35,6 +35,10 @@ module Mauve def result @result ||= @provider_class.new(@name) end + + def debug! + result.extend(Mauve::Notifiers::Debug) + end # This catches all methods available for a provider, as needed. # -- cgit v1.2.1