soft_delete_rails 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c328fc357734d05ff5f8d6221db439a5e5c35eba
4
- data.tar.gz: ad34b111cb04d338eab528086a7a732f73f4f53b
3
+ metadata.gz: 4dd4c9724947d8b2b4ab75ced58fc4e4d6ddf633
4
+ data.tar.gz: 004c313e70dbb7a55235f2de7b19cbe374428aa5
5
5
  SHA512:
6
- metadata.gz: f6e92a7f9b4b50939a56e3c77e1904d335e871208eafc237ec66fc0d9ff3dbc70cc9d79e506d7e984683f422c4d1e651e426a4d528df3774841ae4a0273d4ff4
7
- data.tar.gz: d51f40ea74aed36ffa06e4cdb1bdb66d3a5db9644bd9d4c901a0135e9aaf70fa92500c20bbc4fe9cfa9b9dfbf65f6324784173a96d5f58b799cf03132e77224e
6
+ metadata.gz: a6949c8d7f53a6c12591d171856f1d54487340a6bf6fd6d49be0d6332f30796091d1b33da7e27aab573a71e48e3a9f75290f9ef9fe086dd01e78c57d7bdbed50
7
+ data.tar.gz: d8504e85800b78d9340cb484bb209e967897b0f31b071d55ecb9e059b5c160569e634820460955897f15badc82df3efff4db641b608b57bd3635b374137b79b9
@@ -23,6 +23,7 @@ module SoftDeleteRails
23
23
  if force == :force
24
24
  if super()
25
25
  hard_destroy_dependent_records
26
+ return !self.persisted?
26
27
  end
27
28
  else
28
29
  run_callbacks(:destroy) do
@@ -1,3 +1,3 @@
1
1
  module SoftDeleteRails
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
data/soft_delete_test CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soft_delete_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Medeiros