From c93900702fb8b539f906f1874e9dbee87befcc39 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sat, 6 Sep 2014 17:17:09 +0300 Subject: [PATCH] Send event notifications to the core team --- app/mailers/event_mailer.rb | 3 +-- app/views/event_mailer/new_event_notification.text.erb | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/mailers/event_mailer.rb b/app/mailers/event_mailer.rb index c34f589..ba11a45 100644 --- a/app/mailers/event_mailer.rb +++ b/app/mailers/event_mailer.rb @@ -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 diff --git a/app/views/event_mailer/new_event_notification.text.erb b/app/views/event_mailer/new_event_notification.text.erb index 4b114fc..3b2be23 100644 --- a/app/views/event_mailer/new_event_notification.text.erb +++ b/app/views/event_mailer/new_event_notification.text.erb @@ -10,7 +10,7 @@ Поток: <%= @event.track.name %> -Продължителност: <%= @event.length %> +Продължителност: <%= @event.length %> мин. Език: <%= @event.language %>