{"id":20513678,"url":"https://github.com/theopencms/friendly_id_pack","last_synced_at":"2025-08-30T15:22:55.217Z","repository":{"id":71919608,"uuid":"92770792","full_name":"TheOpenCMS/friendly_id_pack","owner":"TheOpenCMS","description":"Friendly Id for Models","archived":false,"fork":false,"pushed_at":"2017-07-01T10:42:40.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T23:14:16.021Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheOpenCMS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-29T19:52:21.000Z","updated_at":"2017-05-29T19:52:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"f0bc60ef-d77b-4d10-acad-796395bb3400","html_url":"https://github.com/TheOpenCMS/friendly_id_pack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TheOpenCMS/friendly_id_pack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheOpenCMS%2Ffriendly_id_pack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheOpenCMS%2Ffriendly_id_pack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheOpenCMS%2Ffriendly_id_pack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheOpenCMS%2Ffriendly_id_pack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheOpenCMS","download_url":"https://codeload.github.com/TheOpenCMS/friendly_id_pack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheOpenCMS%2Ffriendly_id_pack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271588743,"owners_count":24785751,"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-08-22T02:00:08.480Z","response_time":65,"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-15T21:12:35.011Z","updated_at":"2025-08-22T05:04:51.237Z","avatar_url":"https://github.com/TheOpenCMS.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FriendlyIdPack\n\n```ruby\nclass SlugIds \u003c ActiveRecord::Migration\n  def change\n    [:pages, :posts].each do |table_name|\n      change_table table_name do |t|\n        t.string :slug,        default: ''\n        t.string :short_id,    default: ''\n        t.string :friendly_id, default: ''\n      end\n    end\n  end\nend\n```\n\n```ruby\nclass Post \u003c ActiveRecord::Base\n  include FriendlyIdPack::Base\nend\n\npost = Post.new\npost.title = \"Привет\"\npost.save\n\n\npost.title        # =\u003e \"Привет\"\npost.slug         # =\u003e \"privet\"\npost.short_id     # =\u003e \"pt1263\"\npost.friendly_id  # =\u003e \"pt1263+privet\"\n\nPost.friendly_where(:privet) # =\u003e [post ...]\nPost.friendly_first(:privet) # =\u003e post\n```\n\n### MIT\n\nzykin-ilya@ya.ru 2014\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheopencms%2Ffriendly_id_pack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheopencms%2Ffriendly_id_pack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheopencms%2Ffriendly_id_pack/lists"}