Prepare to support ruby 3.3.
This commit is contained in:
parent
d4d1e65a6d
commit
fbb2b30d66
|
@ -1,6 +1,7 @@
|
|||
module Gallery
|
||||
class Engine < ::Rails::Engine
|
||||
initializer "gallery" do
|
||||
Rails.application.config.to_prepare do
|
||||
begin
|
||||
translate_data = Dir["#{Gallery::Engine.root}/config/locales/*.yml"] .map{|yaml_file| YAML.load(File.read(yaml_file))}
|
||||
data = {}
|
||||
|
@ -99,4 +100,5 @@ module Gallery
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue