Skip to content

Commit 62edb35

Browse files
authored
Merge pull request #122 from hidakatsuya/adapt-to-base-class-changes
Adapt to base class changes in Redmine models
2 parents fd10280 + ffa9adb commit 62edb35

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)