fix email link

This commit is contained in:
Zachary Chai 2017-02-21 16:27:54 -05:00
parent 55f2041b7c
commit 80374e02a5
2 changed files with 4 additions and 3 deletions

View File

@ -47,9 +47,7 @@
} else if (data.action === 'create') {
if (row.length == 0) {
data.duration = data.length;
table.rows.add([data]);
recordings.draw();
recordings.refresh();
showAlert(I18n.recording_created, 4000);
}

View File

@ -20,6 +20,9 @@ class NotificationMailer < ActionMailer::Base
def recording_ready_email(user)
@user = user
@room_url = meeting_room_url(resource: 'rooms', id: user.encrypted_id)
unless @room_url.include? "#{Rails.configuration.relative_url_root}/"
@room_url = @room_url.split('/rooms/').join("#{Rails.configuration.relative_url_root}/rooms/")
end
mail(to: user.email, subject: t('.subject'))
end
end