Use ApplicationRecord with Rails 7

This commit is contained in:
Alexander Meindl 2024-01-31 09:32:15 +01:00
parent ccdf0e1794
commit f92c2aefe0
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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