Also protected alerted from mass assignment
This commit is contained in:
parent
2c3381ae6d
commit
6a68202f1a
1 changed files with 2 additions and 1 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Reference in a new issue