From 6a68202f1a9cdfeaa357cd55885108458310ce65 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Sun, 7 Apr 2013 06:21:53 -0400 Subject: [PATCH] Also protected alerted from mass assignment --- app/models/alert.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/alert.rb b/app/models/alert.rb index d63c031..eed0b1c 100644 --- a/app/models/alert.rb +++ b/app/models/alert.rb @@ -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 => {