Schedules migration to future versions created by Vidibus::Versioning.
This gem is part of Vidibus, an open source toolset for building distributed (video) applications.
gem "vidibus-version_scheduler" to your Gemfile. Then call
bundle install on your console.
To use scheduling on a versioned model, just include the lib and you're done:
class Book include Mongoid::Document include Vidibus::Versioning::Mongoid include Vidibus::VersionScheduler::Mongoid end
Whenever a version gets created that has a future
created_at timestamp, a
DelayedJob will be created to migrate your model to that version at the
specified time. The job will be added to a queue named "versioning".
- Solve the serious bug with DelayedJob and Mongoid. See ISSUES.md
© 2011-2013 Andre Pankratz. See LICENSE for details.