Skip to content

Commit

Permalink
Use ApplicationRecord with Rails 7
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Jan 31, 2024
1 parent ccdf0e1 commit f92c2ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/dashboard.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/models/dashboard_role.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f92c2ae

Please sign in to comment.