app/models/spotlight/contact_email.rb in blacklight-spotlight-0.1.0 vs app/models/spotlight/contact_email.rb in blacklight-spotlight-0.2.0

- old
+ new

@@ -25,10 +25,15 @@ end errors.add :email, "is not valid" unless !parsed.nil? && parsed.address == email && parsed.local != email #cannot be a local address end def send_devise_notification(notification, *args) - notification_mailer.send(notification, self, *args).deliver + notice = notification_mailer.send(notification, self, *args) + if notice.respond_to? :deliver_now + notice.deliver_now + else + notice.deliver + end end def notification_mailer Spotlight::ConfirmationMailer end