From 06fd820095b20056615099c5304f27db6a95228c Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Mon, 1 Dec 2014 21:20:08 +0800 Subject: [PATCH] small fix --- app/controllers/admin/page_contents_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/page_contents_controller.rb b/app/controllers/admin/page_contents_controller.rb index 8037908..5b427c2 100644 --- a/app/controllers/admin/page_contents_controller.rb +++ b/app/controllers/admin/page_contents_controller.rb @@ -4,7 +4,7 @@ class Admin::PageContentsController < OrbitAdminController @table_fields = [:page_id, :name,:version,:update_at,:last_modified, :category] @filter_fields = {} @pages = Page.where(:module=>"page_content").order_by(sort) - @categories = @module_app.module_app.categories.enabled.authorized(current_user).collect{|c| [c.title, c.id]} + @categories = @module_app.categories.enabled.authorized(current_user).collect{|c| [c.title, c.id]} @pages = search_data(@pages,[:name, :page_id]).page(params[:page]).per(10) render :partial => "index" if request.xhr?