Skip to content

Commit

Permalink
turn array into string before base64 encoding datacite/datacite#897
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Dec 13, 2019
1 parent 8a2efc0 commit c34f3d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/concerns/paginatable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def page_from_params(params)

def make_cursor(results)
# Base64-encode cursor
Base64.urlsafe_encode64(results.to_a.last[:sort], padding: false)
Base64.urlsafe_encode64(results.to_a.last[:sort].join(","), padding: false)
end
end
end

0 comments on commit c34f3d3

Please sign in to comment.