README.md in mongoid-archivable-1.4.1 vs README.md in mongoid-archivable-1.4.2
- old
+ new
@@ -22,20 +22,20 @@
## Usage
In any Mongoid document, do this:
-```
+```ruby
include Mongoid::Archivable
```
Now a `destroy` of a document will move the document to an Archive collection, namespaced under the document you're destroying.
You can restore an archive as well. Send the `.restore` message to it. For now the archived document is retained, but that might change in the future.
## Example
-```
+```ruby
user = User.create! name: "Example User"
user.destroy
User.count # => 0
User::Archive.count # => 1