Update customers_controller.rb

This commit is contained in:
2016-04-27 07:37:18 -04:00
parent 8374f0ae3e
commit 723d9024c1

View File

@@ -23,7 +23,7 @@ class CustomersController < ApplicationController
@customer_count = c.count
@customer_pages = Paginator.new self, @customer_count, 10, params['page']
@customers = c.all.sort(:limit => @customer_pages.items_per_page, :offset => @customer_pages.current.offset)
@customers = c.all(:limit => @customer_pages.items_per_page, :offset => @customer_pages.current.offset)
end
# display a specific customer