git fixed tag module for taggable

This commit is contained in:
Harry Bomrah 2014-10-03 19:36:41 +08:00
parent e89fd7c30e
commit 0bd8680d62
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ class Admin::TagsController < OrbitAdminController
def setup_vars
@is_module_tag = !params[:module_app_id].blank?
@module_apps = @is_module_tag ? [ModuleApp.find(params[:module_app_id])] : ModuleApp.where(categorizable: true)
@module_apps = @is_module_tag ? [ModuleApp.find(params[:module_app_id])] : ModuleApp.where(taggable: true)
@module_app = @is_module_tag ? ModuleApp.find(params[:module_app_id]) : ModuleApp.find_by(:key=>'tag')
end