1
0
Fork 0

Also protected alerted from mass assignment

This commit is contained in:
Andrew Tomaka 2013-04-07 06:21:53 -04:00
parent 2c3381ae6d
commit 6a68202f1a

View file

@ -1,6 +1,7 @@
class Alert < ActiveRecord::Base
attr_accessible :alerted, :course, :department, :semester
attr_accessible :course, :department, :semester
attr_protected :user_id
attr_protected :alerted
validates :department, :presence => true,
:length => {