From 8ee2c96f797d78f7445dabdef91aee4a87dbe273 Mon Sep 17 00:00:00 2001 From: manson Date: Wed, 14 May 2014 15:43:47 +0800 Subject: [PATCH] Fix sidebar registration --- lib/faq/engine.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/faq/engine.rb b/lib/faq/engine.rb index 60cecc1..4fb1197 100644 --- a/lib/faq/engine.rb +++ b/lib/faq/engine.rb @@ -28,14 +28,14 @@ module Faq context_link 'categories', :link_path=>"admin_module_app_categories_path" , - :link_arg=>{:module_app_id=>get_module_app.id}, + :link_arg=>"{:module_app_id=>ModuleApp.find_by(:key=>'faq').id}", :priority=>3, :active_for_action=>{'admin/faqs'=>'categories'}, :active_for_category => 'Faq' context_link 'tags', :link_path=>"admin_module_app_tags_path" , - :link_arg=>{:module_app_id=>get_module_app.id}, + :link_arg=>"{:module_app_id=>ModuleApp.find_by(:key=>'faq').id}", :priority=>4, :active_for_action=>{'admin/faqs'=>'tags'}, :active_for_tag => 'Faq'