Fix old kernel.

This commit is contained in:
邱博亞 2024-02-24 10:22:17 +08:00
parent 5f66590e63
commit 2ebdf132f1
1 changed files with 5 additions and 1 deletions

View File

@ -4,7 +4,11 @@ class PageContext
include Mongoid::Document include Mongoid::Document
include Mongoid::Timestamps include Mongoid::Timestamps
include OrbitModel::Impression include OrbitModel::Impression
begin
include AutoConvertUnitHelper include AutoConvertUnitHelper
rescue => e
puts "kernel is old!"
end
field :update_user_id field :update_user_id
field :version, :type => Integer , :default => 0 field :version, :type => Integer , :default => 0