From 314e517bc4bd892098b6f049cb2309b608b99ce4 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Wed, 3 Apr 2013 19:47:38 -0400 Subject: [PATCH] Do not use 'class' to reference courses --- app/models/alert.rb | 2 +- app/views/alerts/show.xml.builder | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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