module JamRuby
  class Calendar < ActiveRecord::Base
    include HtmlSanitize
    html_sanitize strict: [:name, :description]
    attr_accessible :name, :description, :target_uid, :trigger_delete, :start_at, :end_at

    @@log = Logging.logger[Calendar]

    self.table_name = "calendars"
    self.primary_key = 'id'

    belongs_to :user, :class_name => 'JamRuby::User', :foreign_key => :user_id, :inverse_of => :calendars
  end
end
