{"id":18372962,"url":"https://github.com/activeadmin/activeadmin-mongoid","last_synced_at":"2025-04-05T00:09:39.125Z","repository":{"id":2750893,"uuid":"3747390","full_name":"activeadmin/activeadmin-mongoid","owner":"activeadmin","description":"ActiveAdmin hacks to support Mongoid","archived":false,"fork":false,"pushed_at":"2024-08-12T15:00:50.000Z","size":440,"stargazers_count":193,"open_issues_count":10,"forks_count":210,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-03-28T23:06:48.712Z","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/activeadmin.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":"2012-03-17T12:11:03.000Z","updated_at":"2025-02-10T12:30:28.000Z","dependencies_parsed_at":"2024-01-23T21:20:30.481Z","dependency_job_id":"7165f3e3-c718-4770-85f7-8991ced3ed06","html_url":"https://github.com/activeadmin/activeadmin-mongoid","commit_stats":{"total_commits":211,"total_committers":31,"mean_commits":6.806451612903226,"dds":0.6824644549763033,"last_synced_commit":"9eb1b01a77ddd7f489982514f898e2a2d1d7908e"},"previous_names":["elia/activeadmin-mongoid"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activeadmin%2Factiveadmin-mongoid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activeadmin%2Factiveadmin-mongoid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activeadmin%2Factiveadmin-mongoid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activeadmin%2Factiveadmin-mongoid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/activeadmin","download_url":"https://codeload.github.com/activeadmin/activeadmin-mongoid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266564,"owners_count":20910836,"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-06T00:07:47.704Z","updated_at":"2025-04-05T00:09:39.104Z","avatar_url":"https://github.com/activeadmin.png","language":"Ruby","readme":"# ActiveAdmin-Mongoid\n[![Version         ][rubygems_badge]][rubygems]\n![Tests](https://github.com/activeadmin/activeadmin-mongoid/actions/workflows/tests.yml/badge.svg)\n![Codecheck](https://github.com/activeadmin/activeadmin-mongoid/actions/workflows/codecheck.yml/badge.svg)\n\n## Updates\n\nActiveAdmin is holding off on pulling Mongoid support into the core ActiveAdmin application.  This repo was pulled into the ActiveAdmin org from previous work done by Elia Schito, and will be maintained by Grzegorz Jakubiak, Nic Boie, JD Guzman, Elia Schito and other ActiveAdmin and community members.\n\n### Requirements for version 1.0.0\n* Ruby 2.4.0 or greater.\n* Tested working on Rails 5.2.3\n* Mongoid 6.x (**WARNING**:, using a Mongoid version \u003e= 6.1.x has resulted in a fair amount of errors seen in the wild.  Test your upgrade very carefully with any apps in which you're using this gem with Mongoid \u003e= 6.1.x!)\n* ActiveAdmin 1.4.3 or greater\n* `ransack-mongoid` - it needs to be explicitly declared in Gemfile, pointing to github's master since it has no releases on rubygems yet.\n\n## Previous versions\n* Rails 4.x with Mongoid 5.x use branch rails4-mongoid5\n* Rails 4.x with Mongoid 4.x branch rails4\n* Mongoid 3.x with older versions of rails use v 0.3.0\n\n## ♻️ INFO\n\nThis gem has been brought into the ActiveAdmin org for support and maintenance.\n\n# ActiveAdmin::Mongoid\n\nActiveAdmin hacks to support Mongoid.\nSome ActiveAdmin features are disabled or not working properly:\n\n- comments are disabled by default\n- filters are somewhat broken\n\nFor more on Mongoid support in ActiveAdmin see [this issue](https://github.com/gregbell/active_admin/issues/26).\n\n## Installation\n\n### Some Gems\nAdd the following gems to your application's Gemfile, and lock the version:\n\n```ruby\ngem 'activeadmin-mongoid', '1.0.0'\ngem 'ransack-mongoid', github: 'activerecord-hackery/ransack-mongoid'\n```\n\nYou can safely remove the following lines, since are already activeadmin-mongoid dependencies:\n\n```ruby\ngem 'activeadmin'\n```\n\n### Remove Application Dependencies\nIn your config/application.rb, replace:\n\n```ruby\nrequire 'rails/all'\n```\n\nwith:\n\n```ruby\nrequire \"action_controller/railtie\"\nrequire \"action_mailer/railtie\"\nrequire \"active_resource/railtie\"\nrequire \"action_view/railtie\"\nrequire \"sprockets/railtie\"\nrequire \"rails/test_unit/railtie\"\n```\n\nNOTE: This gem will NOT work if you use both ActiveRecord AND Mongoid in the same app.  rails/all includes elements requiring ActiveRecord::Connection\n\n### Bundle \u0026 Crank\n\nExecute:\n\n    $ bundle\n    $ rails g devise:install\n    $ rails g active_admin:install\n\nCheck that the generated initializers/devise.rb file requires mongoid orm.\nYou may find a line like this :\n\n```ruby\nrequire 'devise/orm/mongoid'\n```\n\nThen create an admin user:\n\n    $ bundle exec rails console\n    \u003e\u003e AdminUser.create email: 'admin@example.com', password: 'password', password_confirmation: 'password'\n\nAnd that's pretty much it !\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Added some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## Copyright\n\nCopyright © 2012 Elia Schito. See LICENSE for details.\n\n[rubygems_badge]: https://img.shields.io/gem/v/activeadmin-mongoid.svg\n[rubygems]: https://rubygems.org/gems/activeadmin-mongoid\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factiveadmin%2Factiveadmin-mongoid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factiveadmin%2Factiveadmin-mongoid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factiveadmin%2Factiveadmin-mongoid/lists"}