Sha256: 2fca53544dde7eaf3638e6af41909b855658352b928d76da39eae6e17197895c
Contents?: true
Size: 682 Bytes
Versions: 2
Compression:
Stored size: 682 Bytes
Contents
## Upgrading Mongoid Locker ### Upgrading to 1.0.0 `Mongoid::Locker` no longer defines `locked_at` and `locked_until` fields when included. You must define these fields manually. ```ruby class User include Mongoid::Document include Mongoid::Locker field :locked_at, type: Time field :locked_until, type: Time end ``` You can customize the fields used with a `locker` class method or via a global `configure`. See [Customizable :locked_at and :locked_until field names](https://github.com/mongoid/mongoid-locker#customizable-locked_at-and-locked_until-field-names) for more information. See [#55](https://github.com/mongoid/mongoid-locker/pull/55) for more information.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mongoid-locker-1.0.1 | UPGRADING.md |
mongoid-locker-1.0.0 | UPGRADING.md |