fix for not working cache
This commit is contained in:
1 parent
4daf36908c
commit
2ae6b54a45
2 files changed
+1
-3
No files matched your search
@@ -6,7 +6,7 @@ class Admin::ModuleAppsNewInterfaceController < OrbitBackendController
|
||||
layout "new_admin"
|
||||
|
||||
def setting
|
||||
@sys_users = Rails.cache.read('user_setting') #User.all(conditions: {admin: false}).includes(:avatar)
|
||||
@sys_users = 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
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
<%= content_tag :div ,:id => "users_checkbox_ary",:class => 'clear' do %>
|
||||
<% cache ["users_checkbox_ary"] do%>
|
||||
<%= render :partial => "shared/privilege_user",:collection =>@sys_users,:as=>:user ,:locals =>{ :chosen_users=> @users_array } %>
|
||||
<%end -%>
|
||||
<%end -%>
|
||||
Reference in new issue
Block a user