diff --git a/app/models/alert.rb b/app/models/alert.rb index c47613a..3921e70 100644 --- a/app/models/alert.rb +++ b/app/models/alert.rb @@ -27,7 +27,7 @@ class Alert < ActiveRecord::Base @alerted end - def class_name + def course_name "#{self.department} #{self.course}" end diff --git a/app/views/alerts/show.xml.builder b/app/views/alerts/show.xml.builder index c20ecca..28bcddf 100644 --- a/app/views/alerts/show.xml.builder +++ b/app/views/alerts/show.xml.builder @@ -1,4 +1,4 @@ xml.instruct! xml.Response do - xml.Say @alert.class_name + ' is now available.', :voice => 'woman' + xml.Say @alert.course_name + ' is now available.', :voice => 'woman' end \ No newline at end of file