app/controllers/cms/groups_controller.rb in browsercms-3.3.4 vs app/controllers/cms/groups_controller.rb in browsercms-3.4.0.rc1
- old
+ new
@@ -1,16 +1,17 @@
-class Cms::GroupsController < Cms::ResourceController
+module Cms
+class GroupsController < Cms::ResourceController
layout 'cms/administration'
check_permissions :administrate
before_filter :set_menu_section
def index
@groups = Group.paginate(
:include => :group_type,
:page => params[:page],
- :order => params[:order] || "groups.name")
+ :order => params[:order] || "#{Group.table_name}.name")
end
protected
def after_create_url
index_url
@@ -22,5 +23,6 @@
def set_menu_section
@menu_section = 'groups'
end
end
+end
\ No newline at end of file