Merge cherry pick
This commit is contained in:
parent
5f953d1b19
commit
ef78471b59
|
|
@ -81,16 +81,9 @@ module JamRuby
|
|||
page = options[:page].to_i
|
||||
per_page = options[:per_page].to_i
|
||||
|
||||
if per_page == 0
|
||||
# try and see if limit was specified
|
||||
limit = options[:limit]
|
||||
limit ||= 20
|
||||
limit = limit.to_i
|
||||
else
|
||||
limit = per_page
|
||||
end
|
||||
|
||||
start = (page -1 )* per_page
|
||||
limit = per_page
|
||||
else
|
||||
limit = options[:limit]
|
||||
limit ||= 20
|
||||
|
|
|
|||
Loading…
Reference in New Issue