EventSchedule validations

event, schedule, room and start_time are mandatory in EventSchedule.
This commit is contained in:
Ana 2016-07-26 16:20:31 +02:00
parent 2aee0158f8
commit 7ad7a6423d
10 changed files with 26 additions and 15 deletions

View file

@ -9,6 +9,6 @@ class EventScheduleSerializer < ActiveModel::Serializer
end
def room
object.room.try(:guid)
object.room_guid
end
end