1
0
Fork 0

Do not use 'class' to reference courses

This commit is contained in:
Andrew Tomaka 2013-04-03 19:47:38 -04:00
parent c42a7fbfb5
commit 314e517bc4
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ class Alert < ActiveRecord::Base
@alerted
end
def class_name
def course_name
"#{self.department} #{self.course}"
end

View File

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