https://github.com/mongoid/delayed_job_shallow_mongoid
When the object or arg to a delayed_job is a Mongoid document, store only a small stub of the object instead of the full serialization.
https://github.com/mongoid/delayed_job_shallow_mongoid
Last synced: about 1 year ago
JSON representation
When the object or arg to a delayed_job is a Mongoid document, store only a small stub of the object instead of the full serialization.
- Host: GitHub
- URL: https://github.com/mongoid/delayed_job_shallow_mongoid
- Owner: mongoid
- License: mit
- Created: 2011-11-28T18:15:08.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2017-04-07T15:17:06.000Z (about 9 years ago)
- Last Synced: 2025-04-15T03:55:32.490Z (about 1 year ago)
- Language: Ruby
- Size: 70.3 KB
- Stars: 8
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
delayed_job_shallow_mongoid
===========================
[](http://travis-ci.org/joeyAghion/delayed_job_shallow_mongoid)
[](http://badge.fury.io/rb/delayed_job_shallow_mongoid)
This library short-circuits serialization of [Mongoid](http://mongoid.org) model instances when a delayed job is called on them, or when they're passed as arguments to a delayed job. Rather than generate and store the fully-serialized YAML, a simple stub is stored. When the job is run, the stub is recognized and a `find` is done to look up the underlying document. If a referenced model isn't found at this point, the job simply does nothing.
This gem supports Mongoid 3.x, 4.x and 5.x.
Contributions
-------------
* Contributions encouraged. Feature branches appreciated.
* Development generously supported by [Artsy](http://artsy.net).
Copyright
---------
Copyright (c) 2011-2015 Joey Aghion, Artsy Inc.
MIT License. See [LICENSE](LICENSE.txt) for further details.