{"id":22022713,"url":"https://github.com/cj/protector_pagination","last_synced_at":"2026-05-06T00:34:53.447Z","repository":{"id":9356434,"uuid":"11209095","full_name":"cj/protector_pagination","owner":"cj","description":null,"archived":false,"fork":false,"pushed_at":"2013-07-05T21:57:40.000Z","size":124,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T05:00:21.640Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-05T21:49:22.000Z","updated_at":"2013-12-12T10:10:04.000Z","dependencies_parsed_at":"2022-09-13T19:00:26.826Z","dependency_job_id":null,"html_url":"https://github.com/cj/protector_pagination","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cj/protector_pagination","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cj%2Fprotector_pagination","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cj%2Fprotector_pagination/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cj%2Fprotector_pagination/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cj%2Fprotector_pagination/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cj","download_url":"https://codeload.github.com/cj/protector_pagination/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cj%2Fprotector_pagination/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281107099,"owners_count":26444787,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-30T06:22:30.186Z","updated_at":"2025-10-26T12:39:40.588Z","avatar_url":"https://github.com/cj.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"To test please run:\n\n- rake db:create\n- rake db:seed\n- rails s\n\nThen just visit the root and you'll see just one row printed but the pagination says there are 4 rows.  If you remove restrict! you'll see the correct amount of rows for the pagination displayed.  If you also add in the scope manuall like Post.where(can_view: true).page(1) you'll see the pagination is correct too.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcj%2Fprotector_pagination","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcj%2Fprotector_pagination","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcj%2Fprotector_pagination/lists"}