From f92c2aefe075486826375718d66d828050d5d8f8 Mon Sep 17 00:00:00 2001 From: Alexander Meindl Date: Wed, 31 Jan 2024 09:32:15 +0100 Subject: [PATCH] Use ApplicationRecord with Rails 7 --- app/models/dashboard.rb | 2 +- app/models/dashboard_role.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/dashboard.rb b/app/models/dashboard.rb index c0eb800c..73bf864e 100644 --- a/app/models/dashboard.rb +++ b/app/models/dashboard.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class Dashboard < ActiveRecord::Base +class Dashboard < Rails.version < '7.1' ? ActiveRecord::Base : ApplicationRecord include Redmine::I18n include Redmine::SafeAttributes include Additionals::EntityMethods diff --git a/app/models/dashboard_role.rb b/app/models/dashboard_role.rb index 12dc520b..faf89d65 100644 --- a/app/models/dashboard_role.rb +++ b/app/models/dashboard_role.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class DashboardRole < ActiveRecord::Base +class DashboardRole < Rails.version < '7.1' ? ActiveRecord::Base : ApplicationRecord include Redmine::SafeAttributes belongs_to :dashboard