Prevent user_id from being updated via form
This commit is contained in:
parent
b65219eb0c
commit
2c3381ae6d
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
class Alert < ActiveRecord::Base
|
||||
attr_accessible :alerted, :course, :department, :user_id, :semester
|
||||
attr_accessible :alerted, :course, :department, :semester
|
||||
attr_protected :user_id
|
||||
|
||||
validates :department, :presence => true,
|
||||
:length => {
|
||||
|
|
Loading…
Reference in a new issue