From d53adbd041cbe0cefe4d1415f6ab97556aa2e1ff Mon Sep 17 00:00:00 2001 From: Bohung Date: Tue, 8 Mar 2022 13:56:29 +0800 Subject: [PATCH] Revert last change! --- lib/event_news_mod/engine.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/event_news_mod/engine.rb b/lib/event_news_mod/engine.rb index ca277fe..8f88699 100644 --- a/lib/event_news_mod/engine.rb +++ b/lib/event_news_mod/engine.rb @@ -1,8 +1,7 @@ require "yaml" module EventNewsMod class Engine < ::Rails::Engine - ModuleApp.where(:key=>'event_news').update_all(:key=>'event_news_mod') - initializer "event_news_mod" do + initializer "event_news" do begin translate_data = Dir["#{EventNewsMod::Engine.root}/config/locales/*.yml"] .map{|yaml_file| YAML.load(File.read(yaml_file))} data = {}