From d25ec1cd6dc3d60b3341b24663414236db2e1a9d Mon Sep 17 00:00:00 2001 From: Alexander Meindl Date: Wed, 31 Jan 2024 08:41:49 +0100 Subject: [PATCH] Fix problems for redmine master --- app/models/hedgedoc_author.rb | 2 +- app/models/hedgedoc_note.rb | 2 +- app/models/hedgedoc_user.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/hedgedoc_author.rb b/app/models/hedgedoc_author.rb index 3a53bc1..4c4744d 100644 --- a/app/models/hedgedoc_author.rb +++ b/app/models/hedgedoc_author.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class HedgedocAuthor < ActiveRecord::Base +class HedgedocAuthor < Rails.version < '7.1' ? ActiveRecord::Base : ApplicationRecord include HedgedocDatabase self.table_name = 'Authors' diff --git a/app/models/hedgedoc_note.rb b/app/models/hedgedoc_note.rb index 60a50cb..3a39882 100644 --- a/app/models/hedgedoc_note.rb +++ b/app/models/hedgedoc_note.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class HedgedocNote < ActiveRecord::Base +class HedgedocNote < Rails.version < '7.1' ? ActiveRecord::Base : ApplicationRecord include HedgedocDatabase self.table_name = 'Notes' diff --git a/app/models/hedgedoc_user.rb b/app/models/hedgedoc_user.rb index 47ee207..ae692ea 100644 --- a/app/models/hedgedoc_user.rb +++ b/app/models/hedgedoc_user.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class HedgedocUser < ActiveRecord::Base +class HedgedocUser < Rails.version < '7.1' ? ActiveRecord::Base : ApplicationRecord include HedgedocDatabase self.table_name = 'Users'