lib/voltron/notify.rb in voltron-notify-0.1.9 vs lib/voltron/notify.rb in voltron-notify-0.2.0
- old
+ new
@@ -6,11 +6,13 @@
module Voltron
module Notify
LOG_COLOR = :light_yellow
- def notifyable
+ def notifyable(defaults={})
include InstanceMethods
+
+ @_notification_defaults = defaults.with_indifferent_access
before_validation :validate_notifications
after_validation :clean_notification_validation