Revert last change!

This commit is contained in:
BoHung Chiu 2022-03-08 13:56:29 +08:00
parent 88000daa36
commit d53adbd041
1 changed files with 1 additions and 2 deletions

View File

@ -1,8 +1,7 @@
require "yaml" require "yaml"
module EventNewsMod module EventNewsMod
class Engine < ::Rails::Engine class Engine < ::Rails::Engine
ModuleApp.where(:key=>'event_news').update_all(:key=>'event_news_mod') initializer "event_news" do
initializer "event_news_mod" do
begin begin
translate_data = Dir["#{EventNewsMod::Engine.root}/config/locales/*.yml"] .map{|yaml_file| YAML.load(File.read(yaml_file))} translate_data = Dir["#{EventNewsMod::Engine.root}/config/locales/*.yml"] .map{|yaml_file| YAML.load(File.read(yaml_file))}
data = {} data = {}