We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f32c3fc commit c127159Copy full SHA for c127159
app/models/core_field.rb
@@ -1,4 +1,4 @@
1
-class CoreField < ActiveRecord::Base
+class CoreField < ApplicationRecord
2
include Redmine::SafeAttributes
3
4
has_and_belongs_to_many :roles, :join_table => "core_fields_roles", :foreign_key => "core_field_id"
init.rb
@@ -18,3 +18,10 @@
18
'display_custom_fields_first' => 'true' },
19
:partial => 'settings/redmine_plugin_customize_core_fields'
20
end
21
+
22
+# Support for Redmine 5
23
+if Redmine::VERSION::MAJOR < 6
24
+ class ApplicationRecord < ActiveRecord::Base
25
+ self.abstract_class = true
26
+ end
27
+end
0 commit comments