added validation for all schedule fields (presence of) and working on a new way to dynamically update your calendar upon submission of a new calendar event
This commit is contained in:
@@ -2,5 +2,5 @@ class Schedule < ActiveRecord::Base
|
||||
attr_accessible :date_begin, :date_end, :event_desc, :event_name, :event_type
|
||||
belongs_to :paid_time_off
|
||||
|
||||
validates_presence_of :date_begin, :date_end
|
||||
validates_presence_of :date_begin, :date_end, :event_desc, :event_name, :event_type
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user