Use ApplicationRecord with Rails 7
This commit is contained in:
parent
ccdf0e1794
commit
f92c2aefe0
@ -1,6 +1,6 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class Dashboard < ActiveRecord::Base
|
class Dashboard < Rails.version < '7.1' ? ActiveRecord::Base : ApplicationRecord
|
||||||
include Redmine::I18n
|
include Redmine::I18n
|
||||||
include Redmine::SafeAttributes
|
include Redmine::SafeAttributes
|
||||||
include Additionals::EntityMethods
|
include Additionals::EntityMethods
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class DashboardRole < ActiveRecord::Base
|
class DashboardRole < Rails.version < '7.1' ? ActiveRecord::Base : ApplicationRecord
|
||||||
include Redmine::SafeAttributes
|
include Redmine::SafeAttributes
|
||||||
|
|
||||||
belongs_to :dashboard
|
belongs_to :dashboard
|
||||||
|
Loading…
Reference in New Issue
Block a user