Reference instance variables with self. so they work?
This commit is contained in:
parent
96e5e35d7c
commit
d8125c2202
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ class Alert < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def class_name
|
def class_name
|
||||||
@department + ' ' + @course
|
"#{self.department} #{self.course}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def sections
|
def sections
|
||||||
|
|
Loading…
Reference in a new issue