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