We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fd10280 + ffa9adb commit 62edb35Copy full SHA for 62edb35
app/models/view_customize.rb
@@ -1,4 +1,4 @@
1
-class ViewCustomize < ActiveRecord::Base
+class ViewCustomize < (defined?(ApplicationRecord) == 'constant' ? ApplicationRecord : ActiveRecord::Base)
2
belongs_to :author, :class_name => 'User', :foreign_key => 'author_id'
3
4
validates_length_of :path_pattern, :maximum => 255
0 commit comments