{"action":"created","issue":{"url":"https://api.github.com/repos/amatsuda/kaminari/issues/638","labels_url":"https://api.github.com/repos/amatsuda/kaminari/issues/638/labels{/name}","comments_url":"https://api.github.com/repos/amatsuda/kaminari/issues/638/comments","events_url":"https://api.github.com/repos/amatsuda/kaminari/issues/638/events","html_url":"https://github.com/amatsuda/kaminari/issues/638","id":53657078,"number":638,"title":"Paginate Array returns an empty array when defining total_count","user":{"login":"andreacfm","id":47330,"avatar_url":"https://avatars.githubusercontent.com/u/47330?v=3","gravatar_id":"","url":"https://api.github.com/users/andreacfm","html_url":"https://github.com/andreacfm","followers_url":"https://api.github.com/users/andreacfm/followers","following_url":"https://api.github.com/users/andreacfm/following{/other_user}","gists_url":"https://api.github.com/users/andreacfm/gists{/gist_id}","starred_url":"https://api.github.com/users/andreacfm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreacfm/subscriptions","organizations_url":"https://api.github.com/users/andreacfm/orgs","repos_url":"https://api.github.com/users/andreacfm/repos","events_url":"https://api.github.com/users/andreacfm/events{/privacy}","received_events_url":"https://api.github.com/users/andreacfm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-07T17:20:04Z","updated_at":"2015-01-10T15:42:44Z","closed_at":"2015-01-10T15:42:44Z","body":"Example:\r\n\r\n```ruby \r\na = [1,2,3]\r\nKaminari.paginate_array(a, total_count: 123456).page(4).per_page(10) #=> []\r\n```\r\nSince version 0.13 this returns the passed array with the correct metadata based on the provided total_count. Using latest version paginate_array returns an empty  Array."},"comment":{"url":"https://api.github.com/repos/amatsuda/kaminari/issues/comments/69459954","html_url":"https://github.com/amatsuda/kaminari/issues/638#issuecomment-69459954","issue_url":"https://api.github.com/repos/amatsuda/kaminari/issues/638","id":69459954,"user":{"login":"yuki24","id":386234,"avatar_url":"https://avatars.githubusercontent.com/u/386234?v=3","gravatar_id":"","url":"https://api.github.com/users/yuki24","html_url":"https://github.com/yuki24","followers_url":"https://api.github.com/users/yuki24/followers","following_url":"https://api.github.com/users/yuki24/following{/other_user}","gists_url":"https://api.github.com/users/yuki24/gists{/gist_id}","starred_url":"https://api.github.com/users/yuki24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuki24/subscriptions","organizations_url":"https://api.github.com/users/yuki24/orgs","repos_url":"https://api.github.com/users/yuki24/repos","events_url":"https://api.github.com/users/yuki24/events{/privacy}","received_events_url":"https://api.github.com/users/yuki24/received_events","type":"User","site_admin":false},"created_at":"2015-01-10T15:42:44Z","updated_at":"2015-01-10T15:42:44Z","body":"It's a bug in 0.16.1 and 21ad994d42527fd97c8168b0d0ccdd88cec91251 should fix it. Please be patient until the next release is out."}}