{"id":18820906,"url":"https://github.com/hashrocket/acts_as_featured","last_synced_at":"2025-09-14T04:25:16.086Z","repository":{"id":66302452,"uuid":"32383","full_name":"hashrocket/acts_as_featured","owner":"hashrocket","description":null,"archived":false,"fork":false,"pushed_at":"2008-07-08T21:19:42.000Z","size":87,"stargazers_count":25,"open_issues_count":0,"forks_count":2,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-27T14:21:18.506Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hashrocket.png","metadata":{"files":{"readme":"README.markdown","changelog":"CHANGELOG","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":"2008-07-08T20:45:12.000Z","updated_at":"2019-08-13T13:28:42.000Z","dependencies_parsed_at":"2023-02-20T01:45:28.615Z","dependency_job_id":null,"html_url":"https://github.com/hashrocket/acts_as_featured","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashrocket%2Facts_as_featured","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashrocket%2Facts_as_featured/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashrocket%2Facts_as_featured/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashrocket%2Facts_as_featured/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hashrocket","download_url":"https://codeload.github.com/hashrocket/acts_as_featured/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248799968,"owners_count":21163404,"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","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-08T00:31:45.158Z","updated_at":"2025-04-14T00:18:05.398Z","avatar_url":"https://github.com/hashrocket.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"ActsAsFeatured\n==============\nAllows ActiveRecord models to be specified as featured by updating a `featured_at` datetime (or timestamp) field on the model.\n\nAlso provides named scopes for featured and unfeatured finds.\n\nRequires Rails \u003e 2.1.0\n\nInstallation\n============\n\nAdd a `featured_at` datetime field to any model that you want to be featured.\n\nExample\n=======\n\n    # Add the column\n    ./script/generate migration AddFeaturedAtToPost featured_at:datetime\n    rake db:migrate\n\n    class Post \u003c ActiveRecord::Base\n      acts_as_featured\n    end\n    \n    Post.featured\n    # SELECT * FROM posts WHERE posts.featured_at IS NOT NULL\n    \n    Post.unfeatured\n    # SELECT * FROM posts WHERE posts.featured_at IS NULL\n    \n    @post.feature!\n    # UPDATE posts SET featured_at = '2008-07-08 15:58:34' WHERE id = 1\n    \n    @post.unfeature!\n    # UPDATE posts SET featured_at = NULL WHERE id = 1\n    \n    @post.featured?\n    # Return true if the post is featured, false if not\n\nCopyright (c) 2008 Rein Henrichs, released under the MIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashrocket%2Facts_as_featured","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhashrocket%2Facts_as_featured","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashrocket%2Facts_as_featured/lists"}