app/services/change_manager/manager.rb in change_manager-0.0.8 vs app/services/change_manager/manager.rb in change_manager-0.0.9
- old
+ new
@@ -47,10 +47,15 @@
verified_changes
end
def self.notify_users(changes)
mailer = ChangeManager::NotificationMailer
- mailer.send_email(mailer.construct_email(changes))
+ if mailer.send_email(mailer.construct_email(changes))
+ changes.each do |change|
+ change.notify
+ end
+ return true
+ end
+ false
end
-
end
end