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 %>