module ChangeManager class NotificationMailer < ActionMailer::Base def construct_email(changes) @body = prepare_body(changes) mail( to: changes.first.target, from: changes.first.owner, subject: 'Updates from Scholar@UC', ) end def send_email(constructed_email) constructed_email.deliver end def prepare_body(changes) header = '
Change Owner | Change Context | Change | Time | ' body = '' footer = '