virajmahesh/icsi-shift-scheduler

View on GitHub
app/mailers/event_create_mailer.rb

Summary

Maintainability
A
0 mins
Test Coverage
class EventCreateMailer < ActionMailer::Base
  default from: 'notifications@uprisecampaigns.org', template_path: 'notification_mailer'

  def notify_creator event
    @event = event
    @subject = ' You have created a new event.'

    mail to: @event.user.email, subject: @subject, template_name: :event_create_mail
  end
end