{"id":19857006,"url":"https://github.com/johnvuko/acts_as_sortable","last_synced_at":"2026-06-08T01:01:47.585Z","repository":{"id":3901214,"uuid":"4989412","full_name":"johnvuko/acts_as_sortable","owner":"johnvuko","description":null,"archived":false,"fork":false,"pushed_at":"2012-12-09T04:04:29.000Z","size":112,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T23:46:50.930Z","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/johnvuko.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":"2012-07-11T13:36:08.000Z","updated_at":"2013-11-01T14:18:49.000Z","dependencies_parsed_at":"2022-09-09T04:51:15.937Z","dependency_job_id":null,"html_url":"https://github.com/johnvuko/acts_as_sortable","commit_stats":null,"previous_names":["johnvuko/acts_as_sortable"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/johnvuko/acts_as_sortable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2Facts_as_sortable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2Facts_as_sortable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2Facts_as_sortable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2Facts_as_sortable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnvuko","download_url":"https://codeload.github.com/johnvuko/acts_as_sortable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2Facts_as_sortable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34043822,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-07T02:00:07.652Z","response_time":124,"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-12T14:17:11.676Z","updated_at":"2026-06-08T01:01:47.558Z","avatar_url":"https://github.com/johnvuko.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"ActsAsSortable\n======================\n\nA plugin to sort ActiveRecord model.\n\nInstallation\n------------\n\nInclude the gem in your Gemfile:\n\n    gem 'acts_as_sortable', :git =\u003e 'https://github.com/jonathantribouharet/acts_as_sortable'\n\n\nUsage\n-----\n\nIn your migrations:\n\t\n\tclass CreateUsers \u003c ActiveRecord::Migration\n\t\tdef self.up\n\t\t\tcreate_table :users do |t|\n\t\t\t\tt.position\n\t\t\tend\n\t\tend\n\tend\n\t\n\nMinimal configuration in your model:\n\t\n\tclass User \u003c ActiveRecord::Base\n\t\tacts_as_sortable\n\tend\n\nCustom configuration in your model:\n\t\n\tclass User \u003c ActiveRecord::Base\n\t\tacts_as_sortable do |config|\n\t\t\tconfig.acts_as_sortable_scope = :category_id\n\t\tend\n\tend\n\n* `acts_as_sortable_scope` is the scope for sort, by default it's nil.\n\nEach instance have two methods :\n\t\n\t`position_up!` to upper element in order\n\t`position_down!` to lower element in order\t\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnvuko%2Facts_as_sortable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnvuko%2Facts_as_sortable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnvuko%2Facts_as_sortable/lists"}