working cache

This commit is contained in:
Matthew K. Fu JuYuan committed 2012-07-13 15:36:10 +08:00
1 parent 0e65e379b0
commit 4daf36908c
14 files changed
+41 -8

No files matched your search

@@ -6,7 +6,7 @@ class Admin::ModuleAppsNewInterfaceController < OrbitBackendController
layout "new_admin"
def setting
@sys_users = User.all(conditions: {admin: false}).includes(:avatar)
@sys_users = Rails.cache.read('user_setting') #User.all(conditions: {admin: false}).includes(:avatar)
@module_app = ModuleApp.find(params[:module_app_id])
@options_from_collection_for_select_bulletin_categorys = [@module_app].collect{|ma| [ma.title,ma.id] }
# if params.has_key? :category