no_brainer_soft_delete 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/no_brainer_soft_delete.rb +1 -0
- data/lib/no_brainer_soft_delete/version.rb +1 -1
- data/no_brainer_soft_delete.gemspec +0 -8
- 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: ab721bed2d4e52e288186a1ee34b317022ba1bec
|
|
4
|
+
data.tar.gz: a184c0edff84082d16431ad5c7d989eed650f805
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a5a8786b6e64047d83c8a5da5be33b1a94ded860035d0faa83f629a7930ca82c98dad75f5ff69f4999f652a481ed40ea8d089ace26111d8aeedbe9f643f1463a
|
|
7
|
+
data.tar.gz: dc79e9eca72e4c1b2699d4235eb214e223d21e882686442cb317e9659606f3bfd42f3811b70b4f26cca49c94d15f2d65465aea010059e978a48b12a41784febc
|
data/CHANGELOG.md
CHANGED
|
@@ -47,6 +47,7 @@ module NoBrainerSoftDelete
|
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
# Sets the deleted_at value to nil, thus no longer marking the document as deleted
|
|
50
|
+
# TODO: add a recursive option restore that restores soft deleted associations as well.
|
|
50
51
|
def restore(options = {})
|
|
51
52
|
update(deleted_at: nil)
|
|
52
53
|
end
|
|
@@ -14,14 +14,6 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
spec.homepage = "https://github.com/andrewtpoe/no_brainer_soft_delete"
|
|
15
15
|
spec.license = "MIT"
|
|
16
16
|
|
|
17
|
-
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
|
18
|
-
# delete this section to allow pushing this gem to any host.
|
|
19
|
-
# if spec.respond_to?(:metadata)
|
|
20
|
-
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
|
21
|
-
# else
|
|
22
|
-
# raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
|
23
|
-
# end
|
|
24
|
-
|
|
25
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
26
18
|
|
|
27
19
|
spec.require_paths = ["lib"]
|