Do not use 'class' to reference courses
This commit is contained in:
parent
c42a7fbfb5
commit
314e517bc4
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ class Alert < ActiveRecord::Base
|
||||||
@alerted
|
@alerted
|
||||||
end
|
end
|
||||||
|
|
||||||
def class_name
|
def course_name
|
||||||
"#{self.department} #{self.course}"
|
"#{self.department} #{self.course}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
xml.instruct!
|
xml.instruct!
|
||||||
xml.Response do
|
xml.Response do
|
||||||
xml.Say @alert.class_name + ' is now available.', :voice => 'woman'
|
xml.Say @alert.course_name + ' is now available.', :voice => 'woman'
|
||||||
end
|
end
|
Loading…
Reference in a new issue