Class: FreeSlotGroup
- Inherits:
-
SlotGroup
- Object
- ActiveRecord::Base
- SlotGroup
- FreeSlotGroup
- Includes:
- ActiveSupport::Callbacks
- Defined in:
- app/models/free_slot_group.rb
Overview
This is an implementation of SlotGroup; it represents a group of free slots that facilitates batch operations.
Notes about attribute usage: starts_at should be set by the View/Controller with the first date of the recurrence, along with the start time of the recurring period. ends_at should be set by the controller with the end time of the recurring period. ends_on should be set by the controller with the end date of the recurrence. When toggling between weekly and monthly, the Controller/View should set the false value first, and then set the true value.