Prepare to support ruby 3.3.
This commit is contained in:
parent
b80208cfbc
commit
8f738acce6
|
@ -1,7 +1,7 @@
|
||||||
module Archive
|
module Archive
|
||||||
class Engine < ::Rails::Engine
|
class Engine < ::Rails::Engine
|
||||||
|
|
||||||
initializer "archive" do
|
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_category', __FILE__)
|
||||||
require File.expand_path('../../../app/models/archive_sort_order', __FILE__)
|
require File.expand_path('../../../app/models/archive_sort_order', __FILE__)
|
||||||
if defined?(ArchiveSortOrder)
|
if defined?(ArchiveSortOrder)
|
||||||
|
@ -103,7 +103,7 @@ module Archive
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
tmp
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue