module MongoidOccurrences::Occurrence::HasSchedule::ClassMethods

Public Instance Methods

embedded_in_event(name, options = {}) click to toggle source
Calls superclass method
# File lib/mongoid_occurrences/occurrence/has_schedule.rb, line 7
def embedded_in_event(name, options = {})
  super(name, options)

  field :schedule, type: MongoidIceCubeExtension::Schedule
  field :schedule_dtstart, type: Time
  field :schedule_dtend, type: Time

  before_validation :nil_schedule, unless: :recurring?
end