Fixed companions heading, time_select bug, and emails on comments

This commit is contained in:
Godwin
2016-08-16 17:57:04 -07:00
parent e56aaf5bf7
commit 22375e73e0
10 changed files with 44 additions and 20 deletions
@@ -547,6 +547,7 @@ class ApplicationController < LinguaFrancaApplicationController
end
last_event = time
end
@schedule[day][:num_locations] = data[:locations].size
end
@schedule.deep_dup.each do | day, data |
+8 -4
View File
@@ -1281,15 +1281,19 @@ class ConferencesController < ApplicationController
comment = Comment.find_by!(id: params[:comment_id].to_i, model_type: :workshops, model_id: workshop.id)
new_comment = comment.add_comment(current_user, params[:reply])
UserMailer.send_mail :workshop_comment, comment.user.locale do
[ workshop, new_comment, comment.user ]
unless comment.user.id == current_user.id
UserMailer.send_mail :workshop_comment, comment.user.locale do
[ workshop, new_comment, comment.user ]
end
end
elsif params[:button] = 'add_comment'
new_comment = workshop.add_comment(current_user, params[:comment])
workshop.active_facilitators.each do | u |
UserMailer.send_mail :workshop_comment, u.locale do
[ workshop, new_comment, u ]
unless u.id == current_user.id
UserMailer.send_mail :workshop_comment, u.locale do
[ workshop, new_comment, u ]
end
end
end
else