{"id":19631659,"url":"https://github.com/noma4i/mongo_trails","last_synced_at":"2025-04-28T06:33:21.827Z","repository":{"id":45889057,"uuid":"290646248","full_name":"noma4i/mongo_trails","owner":"noma4i","description":"AR PaperTrail to MongoDB storage","archived":false,"fork":false,"pushed_at":"2025-02-20T17:38:51.000Z","size":144,"stargazers_count":4,"open_issues_count":6,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-22T08:13:35.818Z","etag":null,"topics":["activerecord","audit","mongodb","rails","ruby"],"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/noma4i.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-08-27T01:42:40.000Z","updated_at":"2021-11-01T23:26:30.000Z","dependencies_parsed_at":"2024-11-11T12:10:54.383Z","dependency_job_id":"7047fa1e-1e85-4ee6-8584-71bda944705a","html_url":"https://github.com/noma4i/mongo_trails","commit_stats":{"total_commits":40,"total_committers":4,"mean_commits":10.0,"dds":"0.17500000000000004","last_synced_commit":"c28af0f0a66ce4221218e5ee7fd5bbf4973a78d0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noma4i%2Fmongo_trails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noma4i%2Fmongo_trails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noma4i%2Fmongo_trails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noma4i%2Fmongo_trails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noma4i","download_url":"https://codeload.github.com/noma4i/mongo_trails/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251266011,"owners_count":21561768,"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":["activerecord","audit","mongodb","rails","ruby"],"created_at":"2024-11-11T12:10:44.248Z","updated_at":"2025-04-28T06:33:21.577Z","avatar_url":"https://github.com/noma4i.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/noma4i/mongo_trails.svg?branch=master)](https://travis-ci.com/noma4i/mongo_trails)\n\n# PaperTrail to MongoDB storage\n\n## Addon for PaperTrail\n\nTrack changes to your models, for auditing or versioning. See how a model looked\nat any stage in its lifecycle, revert it to any version, or restore it after it\nhas been destroyed.\n\n## Limitations\n- `PaperTrail-AssociationTracking` are not supported in full.\n\n## How to Use\n\nAdd to Gemfile\n\n```ruby\n  gem 'mongo_trails', git: 'https://github.com/noma4i/mongo_trails'\n```\n\nCreate initializer like:\n\n```ruby\nPaperTrail.config.mongo_config = { hosts: ['localhost:27017'], database: 'my_test_db' }\nPaperTrail.config.mongo_prefix = lambda do\n  'my_cool_prefix'\nend\n\nrequire 'mongo_trails/mongo_support/config'\n```\n\nDone!\n\n## Config Options\n\n`PaperTrail.config.mongo_config = { hosts: ['localhost:27017'], database: 'my_test_db' }` - Options for MongoDB connection\n\n`PaperTrail.config.mongo_prefix = 'my_versions' # or Lambda` - Versions prefix for MongoDB collection\n\n`PaperTrail.config.enable_sidekiq = false` - Enable Sidekiq to proccess versions\n`PaperTrail.config.sidekiq_worker = PaperTrail::WriteVersionWorker` - Worker class\n`PaperTrail.config.sidekiq_options = { queue: :default }` - Options for Sidekiq\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoma4i%2Fmongo_trails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoma4i%2Fmongo_trails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoma4i%2Fmongo_trails/lists"}