diff --git a/app/controllers/members_controller.rb b/app/controllers/members_controller.rb index c46b62879..e2f68978a 100644 --- a/app/controllers/members_controller.rb +++ b/app/controllers/members_controller.rb @@ -28,12 +28,11 @@ class MembersController < ApplicationController @member_count = @project.member_principals.count @member_pages = Paginator.new @member_count, @limit, params['page'] @offset ||= @member_pages.offset - @members = @project.member_principals.all( - :order => "#{Member.table_name}.id", - :limit => @limit, - :offset => @offset - ) - + @members = @project.member_principals. + order("#{Member.table_name}.id"). + limit(@limit). + offset(@offset). + all respond_to do |format| format.html { head 406 } format.api