From 4967fbc87d216a8d710eec34d6c138d8868c8dc4 Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 23 Aug 2019 14:34:18 +0800 Subject: [PATCH] fix --- config/locales/en.yml | 1 + config/locales/zh_tw.yml | 1 + lib/testing/engine.rb | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index 4db5369..41cdec7 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2,3 +2,4 @@ en: testing: testing: Test Module order: order + hello: hello! diff --git a/config/locales/zh_tw.yml b/config/locales/zh_tw.yml index 77888f7..b15b7bd 100644 --- a/config/locales/zh_tw.yml +++ b/config/locales/zh_tw.yml @@ -2,3 +2,4 @@ zh_tw: testing: testing: 測試模組 order: 排序 + hello: 嗨!! diff --git a/lib/testing/engine.rb b/lib/testing/engine.rb index f00104d..eef0aac 100644 --- a/lib/testing/engine.rb +++ b/lib/testing/engine.rb @@ -49,7 +49,7 @@ module Testing context_link 'testing.hello', :link_path=>"admin_testings_path" , :priority=>6, - :active_for_action=>{'admin/testings'=>'hello'}, + :active_for_action=>{'admin/testings/hello'=>'hello'}, :active_for_tag => 'Testing', :available_for => 'managers' end