aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/calendar.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/calendar.rb')
-rw-r--r--app/models/calendar.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/calendar.rb b/app/models/calendar.rb
index 32eedf9ea..4b0ff8379 100644
--- a/app/models/calendar.rb
+++ b/app/models/calendar.rb
@@ -2,13 +2,14 @@ require 'range_ext'
require_relative 'calendar/date_value'
require_relative 'calendar/period'
-class Calendar < ActiveRecord::Base
+class Calendar < ApplicationModel
include DateSupport
include PeriodSupport
include ApplicationDaysSupport
include TimetableSupport
+ include MetadataSupport
- has_paper_trail class_name: 'PublicVersion'
+ has_metadata
belongs_to :organisation
belongs_to :workgroup