Commit 2a266379 by ivan Lan

Improve new paginate about current_page

parent 8178a3cd
......@@ -150,6 +150,8 @@ module Shotengai
end
def paginate resources, page: , per_page:
@current_page = page
if skip_paginate?(page, per_page)
@total_page = 1
return resources
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment