Sha256: cf0684911d23ebd1ebe3138f53ceab861cb935584464bcdde7a506b488e6b3ee

Contents?: true

Size: 784 Bytes

Versions: 1

Compression:

Stored size: 784 Bytes

Contents

module Caboose
  class CalendarEventGroup < ActiveRecord::Base    
    self.table_name = "calendar_event_groups"
    
    has_many :calendar_events      
    attr_accessible :id ,
      :period        , # Daily, weekly, monthly, or yearly
      :frequency     , 
      :repeat_by     , # Used for monthly repeats
      :sun           ,
      :mon           ,
      :tue           ,
      :wed           ,
      :thu           ,
      :fri           ,
      :sat           ,
      :date_start    ,
      :repeat_count  , # How many times the repeat occurs
      :date_end
     
    PERIOD_DAY   = 'Day'
    PERIOD_WEEK  = 'Week'
    PERIOD_MONTH = 'Month'
    PERIOD_YEAR  = 'Year'

    REPEAT_BY_DAY_OF_MONTH = 'Day of month'
    REPEAT_BY_DAY_OF_WEEK  = 'Day of week'
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
caboose-cms-0.4.110 app/models/caboose/calendar_event_group.rb