mongoid-archivable 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -10
- data/lib/mongoid/archivable/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5d3c5c5b690a5f2b6d113ac0ce5a76c3ae127c8
|
4
|
+
data.tar.gz: 4670145aace8e5f856be1bb33997b3ef096b466e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67483355fd3743415f9de3b31d22e7dfd0162ce418a4da9d5df647fa9a28d0db24efb2fd25fb687e29d6bf07fea1b7ab39b4da0a6751d4cfeaa69e0c47615541
|
7
|
+
data.tar.gz: ff304197b3a196c1c2549b3c58549832ad7de27adfd932f6b90d17b6363de66c1bf16feaf8ad4bd6faa2811ecfd3e2a22408cbd0a957f9a75aa21b7174dd1801
|
data/README.md
CHANGED
@@ -26,18 +26,18 @@ In any Mongoid document, do this:
|
|
26
26
|
include Mongoid::Archivable
|
27
27
|
```
|
28
28
|
|
29
|
-
Now a `destroy` of a document will move the document to an Archive collection.
|
29
|
+
Now a `destroy` of a document will move the document to an Archive collection, namespaced under the document you're destroying.
|
30
30
|
|
31
|
-
##
|
31
|
+
## Example
|
32
32
|
|
33
|
-
|
33
|
+
```
|
34
|
+
user = User.create! name: "Example User"
|
35
|
+
user.destroy
|
34
36
|
|
35
|
-
|
37
|
+
User.count # => 0
|
38
|
+
User::Archive.count # => 1
|
39
|
+
```
|
36
40
|
|
37
|
-
##
|
41
|
+
## Development
|
38
42
|
|
39
|
-
|
40
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
41
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
42
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
43
|
-
5. Create a new Pull Request
|
43
|
+
Please report any issues to the [GitHub issue tracker](https://github.com/Sign2Pay/mongoid-archivable/issues).
|