Skip to content

Commit ffa9adb

Browse files
committed
Adapt to base class changes in Redmine models
1 parent fd10280 commit ffa9adb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/view_customize.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class ViewCustomize < ActiveRecord::Base
1+
class ViewCustomize < (defined?(ApplicationRecord) == 'constant' ? ApplicationRecord : ActiveRecord::Base)
22
belongs_to :author, :class_name => 'User', :foreign_key => 'author_id'
33

44
validates_length_of :path_pattern, :maximum => 255

0 commit comments

Comments
 (0)