{"id":19474659,"url":"https://github.com/tomasc/mongo_mapper_acts_as_embedded_list","last_synced_at":"2026-05-15T17:02:13.481Z","repository":{"id":1152687,"uuid":"1037616","full_name":"tomasc/mongo_mapper_acts_as_embedded_list","owner":"tomasc","description":"[DEAD] ActsAsEmbeddedList","archived":false,"fork":false,"pushed_at":"2010-11-08T13:18:01.000Z","size":124,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T15:49:42.247Z","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/tomasc.png","metadata":{"files":{"readme":"README.rdoc","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":"2010-10-30T15:32:05.000Z","updated_at":"2015-02-24T16:16:22.000Z","dependencies_parsed_at":"2022-07-06T09:02:17.231Z","dependency_job_id":null,"html_url":"https://github.com/tomasc/mongo_mapper_acts_as_embedded_list","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tomasc/mongo_mapper_acts_as_embedded_list","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fmongo_mapper_acts_as_embedded_list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fmongo_mapper_acts_as_embedded_list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fmongo_mapper_acts_as_embedded_list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fmongo_mapper_acts_as_embedded_list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomasc","download_url":"https://codeload.github.com/tomasc/mongo_mapper_acts_as_embedded_list/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fmongo_mapper_acts_as_embedded_list/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33072970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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-11-10T19:26:04.219Z","updated_at":"2026-05-15T17:02:13.437Z","avatar_url":"https://github.com/tomasc.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"= mongo_mapper_acts_as_embedded_list\n\nThis is a port of classic Rails {acts_as_list}[http://github.com/rails/acts_as_list] to Mongo Mapper. This MongoMapper plugin provides the capabilities for sorting and reordering a number of EmbeddedDocuments in a list. If you do not specify custom position column in the options, a key named position will be created by default.\n\nIt has (almost) the same functionality and passes the original test-suite. The changes to the list are not persisted, you need to call .save on _root_document or on individual items by yourself.\n\n== TODO\n\n* Figure out how to set item's default position when first added to a list (through .build or \u003c\u003c).\n* Figure out how to automatically remove item from list when deleted (through .delete(item)).\n* The name of the association the list items are stored in is now automatically derived from the class of an EmbeddedDocument. This should be more flexible.\n* Add tests for deeply nested documents.\n* Add tests for polymorphic list.\n* Add tests for subclasses.\n\n== Example\n\n  class TodoList\n    include MongoMapper::Document\n    many :todo_items\n  end\n\n  class TodoItem\n    include MongoMapper::EmbeddedDocument\n    plugin MongoMapper::Plugins::ActsAsEmbeddedList\n    acts_as_embedded_list :column =\u003e :pos\n  end\n\n  todo_list.todo_items.first.move_to_bottom\n  todo_list.todo_items.last.move_higher\n\nSee tests for more examples.\n\n== Note on Patches/Pull Requests\n\n* Fork the project.\n* Make your feature addition or bug fix.\n* Add tests for it. This is important so I don't break it in a future version unintentionally.\n* Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)\n* Send me a pull request. Bonus points for topic branches.\n\n== Copyright\n\nOriginal Rails' acts_as_list Copyright (c) 2007 David Heinemeier Hansson, released under the MIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasc%2Fmongo_mapper_acts_as_embedded_list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomasc%2Fmongo_mapper_acts_as_embedded_list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasc%2Fmongo_mapper_acts_as_embedded_list/lists"}