Send event notifications to the core team

This commit is contained in:
Petko Bordjukov 2014-09-06 17:17:09 +03:00
parent d1c9320842
commit c93900702f
2 changed files with 2 additions and 3 deletions

View File

@ -1,8 +1,7 @@
# -*- coding: utf-8 -*-
class EventMailer < ActionMailer::Base
def new_event_notification(event)
@users = User.where(admin: true)
@event = event
mail(to: @users.map(&:email), subject: "Ново предложение за #{@event.class.model_name.human.mb_chars.downcase.to_s}: #{@event.title}")
mail(to: 'core@openfest.org', subject: "Ново предложение за #{@event.class.model_name.human.mb_chars.downcase.to_s}: #{@event.title}")
end
end

View File

@ -10,7 +10,7 @@
Поток: <%= @event.track.name %>
Продължителност: <%= @event.length %>
Продължителност: <%= @event.length %> мин.
Език: <%= @event.language %>