{"id":18039409,"url":"https://github.com/scsmith/actsasadjacent","last_synced_at":"2026-03-05T04:34:59.454Z","repository":{"id":744010,"uuid":"395401","full_name":"scsmith/ActsAsAdjacent","owner":"scsmith","description":"Simple rails plugin for adding the ability to get the next and previous activerecord objects. Scopes can also be defined as this makes use of named scopes under the hood. I'm not too sure this plugin is a good idea as its really just a couple of named scopes","archived":false,"fork":false,"pushed_at":"2009-12-08T11:36:38.000Z","size":216,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T13:41:22.522Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scsmith.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-12-04T14:35:33.000Z","updated_at":"2024-08-26T16:25:53.000Z","dependencies_parsed_at":"2022-08-16T10:45:27.118Z","dependency_job_id":null,"html_url":"https://github.com/scsmith/ActsAsAdjacent","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scsmith/ActsAsAdjacent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scsmith%2FActsAsAdjacent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scsmith%2FActsAsAdjacent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scsmith%2FActsAsAdjacent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scsmith%2FActsAsAdjacent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scsmith","download_url":"https://codeload.github.com/scsmith/ActsAsAdjacent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scsmith%2FActsAsAdjacent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30110441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:40:26.266Z","status":"ssl_error","status_checked_at":"2026-03-05T03:39:15.902Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-10-30T14:09:21.562Z","updated_at":"2026-03-05T04:34:59.434Z","avatar_url":"https://github.com/scsmith.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"ActsAsAdjacent\n==============\n\nSimple rails plugin for adding the ability to get the next and previous activerecord objects. Scopes can also be defined as this makes use of named scopes under the hood.\n\nin item.rb\nacts_as_adjacent\n\nin controllers\n@item = Item.find(5)\nItem.next(5)\nItem.previous(5)\n\nYou can also work directly on an instance\n@item.next\n@item.previous\n\nThis makes use of an offset relative to the record that is passed so it will work even if records are not sequential. So if records 1,2,4,5 are present 2.next will return 4\n\nCopyright (c) 2009 Steve Smith, released under the MIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscsmith%2Factsasadjacent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscsmith%2Factsasadjacent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscsmith%2Factsasadjacent/lists"}