{"id":13462938,"url":"https://github.com/elight/acts_as_commentable_with_threading","last_synced_at":"2025-03-25T06:31:24.340Z","repository":{"id":453310,"uuid":"76743","full_name":"elight/acts_as_commentable_with_threading","owner":"elight","description":"Similar to acts_as_commentable; however, utilizes awesome_nested_set to provide threaded comments","archived":false,"fork":false,"pushed_at":"2022-05-08T16:45:46.000Z","size":133,"stargazers_count":671,"open_issues_count":20,"forks_count":165,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-03-19T07:42:00.758Z","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/elight.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2008-11-16T14:37:39.000Z","updated_at":"2025-02-25T01:42:00.000Z","dependencies_parsed_at":"2022-07-04T17:01:45.652Z","dependency_job_id":null,"html_url":"https://github.com/elight/acts_as_commentable_with_threading","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elight%2Facts_as_commentable_with_threading","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elight%2Facts_as_commentable_with_threading/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elight%2Facts_as_commentable_with_threading/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elight%2Facts_as_commentable_with_threading/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elight","download_url":"https://codeload.github.com/elight/acts_as_commentable_with_threading/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245413764,"owners_count":20611353,"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-07-31T13:00:41.478Z","updated_at":"2025-03-25T06:31:24.041Z","avatar_url":"https://github.com/elight.png","language":"Ruby","readme":"[![Build Status](https://travis-ci.org/elight/acts_as_commentable_with_threading.png)](https://travis-ci.org/elight/acts_as_commentable_with_threading)\n[![Code Climate](https://codeclimate.com/github/elight/acts_as_commentable_with_threading/badges/gpa.svg)](https://codeclimate.com/github/elight/acts_as_commentable_with_threading)\n\nActs As Commentable (now with comment threads(TM)!!!  -- kidding on the (TM))\n===================\n\nAllows for threaded comments to be added to multiple and different models.\nDrop-in compatible for acts_as_commentable (however requiring a database\nschema change)\n\nRequirements\n------------\nThe 2.x version of this gem is for Rails 4 and later versions only.  For the Rails 3.x compatible version of this gem, please use version 1.2.0.\n\nThis gem depends on CollectiveIdea's Awesome Nested Set gem. It is installed if\nnot already present when you install this gem.\n\nYou can find the gem on GitHub at [collectiveidea/awesome_nested_set]\n\n[collectiveidea/awesome_nested_set]: https://github.com/collectiveidea/awesome_nested_set\n\nInstall\n-------\nIn your Gemfile, add:\n\n    gem 'acts_as_commentable_with_threading'\n\nand run `bundle install`.\n\nMigrations\n----------\n* To install from scratch:\n\n        rails generate acts_as_commentable_with_threading_migration\n\n    This will generate the migration script necessary for the table\n\n* To upgrade to acts_as_commentable_with_threading from the\n  old acts_as_commentable:\n\n        rails generate acts_as_commentable_upgrade_migration\n\n    This will generate the necessary migration to upgrade your comments\n    table to work with acts_as_commentable_with_threading\n\nIf the generators fail, you can just as easily create the migrations by hand.\nSee the templates in the generators under [`lib/generators`].\n\n[`lib/generators`]: https://github.com/elight/acts_as_commentable_with_threading/tree/master/lib/generators\n\nUsage\n-----\n    class Article \u003c ActiveRecord::Base\n      acts_as_commentable\n    end\n\n* Add a comment to a model instance, for example an Article:\n\n        @article = Article.find(params[:id])\n        @user_who_commented = @current_user\n        @comment = Comment.build_from( @article, @user_who_commented.id, \"Hey guys this is my comment!\" )\n\n* To make a newly created comment into a child/reply of another comment:\n\n        @comment.move_to_child_of(the_desired_parent_comment)\n\n* To retrieve all comments for an article, including child comments:\n\n        @all_comments = @article.comment_threads\n\n* To retrieve only the root comments without their child comments:\n\n        @root_comments = @article.root_comments\n\n* To check if a comment has children:\n\n        @comment.has_children?\n\n* To verify the number of children a comment has:\n\n        @comment.children.size\n\n* To retrieve a comment's children:\n\n        @comment.children\n\n* If you plan to use the `acts_as_votable` plugin with your comment system be\n  sure to uncomment the line [`acts_as_votable`][L9] in `lib/comment.rb`.\n\n[L9]: https://github.com/elight/acts_as_commentable_with_threading/blob/master/lib/generators/acts_as_commentable_with_threading_migration/templates/comment.rb#L9\n\nCredits\n-------\n* [xxx](https://github.com/xxx) - For contributing the updates for Rails 3!\n* [Jack Dempsey](https://github.com/jackdempsey) - This plugin/gem is heavily\n  influenced/liberally borrowed/stolen from [acts_as_commentable].\n\nAnd in turn...\n\n* Xelipe - Because acts_as_commentable was heavily influenced by Acts As Taggable.\n\n[acts_as_commentable]: https://github.com/jackdempsey/acts_as_commentable\n\nMore\n----\n* [http://tripledogdare.net](http://tripledogdare.net)\n* [http://evan.tiggerpalace.com](http://evan.tiggerpalace.com)\n","funding_links":[],"categories":["Active Record Plugins","ORM/ODM Extensions","Ruby"],"sub_categories":["Rails Comments"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felight%2Facts_as_commentable_with_threading","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felight%2Facts_as_commentable_with_threading","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felight%2Facts_as_commentable_with_threading/lists"}