Prepare to support ruby 3.3.

This commit is contained in:
邱博亞 2024-02-24 20:47:22 +08:00
parent b80208cfbc
commit 8f738acce6
1 changed files with 94 additions and 94 deletions

View File

@ -1,7 +1,7 @@
module Archive
class Engine < ::Rails::Engine
initializer "archive" do
Rails.application.config.to_prepare do
require File.expand_path('../../../app/models/archive_category', __FILE__)
require File.expand_path('../../../app/models/archive_sort_order', __FILE__)
if defined?(ArchiveSortOrder)
@ -103,7 +103,7 @@ module Archive
end
end
end
tmp
end
end
end
end