got rid of mass assignment in certain areas

This commit is contained in:
Ken Johnson
2013-05-30 12:52:43 -04:00
parent ff36b0fab5
commit 23bc521787
4 changed files with 33 additions and 7 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
class Schedule < ActiveRecord::Base
attr_accessible :date_begin, :date_end, :event_desc, :event_name, :event_type, :user_id
attr_accessible :date_begin, :date_end, :event_desc, :event_name, :event_type
belongs_to :paid_time_off
validates_presence_of :date_begin, :date_end