Class: SlotGroup
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- SlotGroup
- Defined in:
- app/models/slot_group.rb
Overview
This represents the concept of a SlotGroup, which can be specialized in FreeSlotGroups or BookingGroups so that batch operations can be performed on them.
Schema Information
Table name: slot_groups
id :integer not null, primary key
monday :boolean default("false"), not null
tuesday :boolean default("false"), not null
wednesday :boolean default("false"), not null
thursday :boolean default("false"), not null
friday :boolean default("false"), not null
saturday :boolean default("false"), not null
sunday :boolean default("false"), not null
weekly :boolean default("false"), not null
monthly :boolean default("false"), not null
capacity :integer default("1"), not null
ends_on :date
created_at :datetime not null
updated_at :datetime not null
type :string not null
starts_at :datetime not null
ends_at :datetime not null
provider_id :integer
affiliation_id :integer
free_slot_group_id :integer
Direct Known Subclasses
Instance Method Summary (collapse)
Instance Method Details
- (Object) write_attribute(attribute_name, value)
52 53 54 55 56 57 58 59 |
# File 'app/models/slot_group.rb', line 52 def write_attribute(attribute_name, value) if value != read_attribute(attribute_name) @changed_attribute = attribute_name @new_value = value run_callbacks(:attribute_changed) end super end |