Format anomaly data in mails

This commit is contained in:
Maximilian Grundke
2017-12-13 12:57:45 +01:00
parent 98d5217044
commit 5f5c266ffc
4 changed files with 39 additions and 3 deletions

View File

@@ -0,0 +1,7 @@
class UserMailerPreview < ActionMailer::Preview
def exercise_anomaly_detected()
collection = ExerciseCollection.new(name: 'Hello World', user: FactoryGirl.create(:admin))
anomalies = {49 => 879.325828, 51 => 924.870057, 31 => 1031.21233, 69 => 2159.182116}
UserMailer.exercise_anomaly_detected(collection, anomalies)
end
end