deleted_at 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/deleted_at/active_record/base.rb +2 -2
- data/lib/deleted_at/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: d07fa54902e77a5441afc4b4cf356ef2856e9d10
|
4
|
+
data.tar.gz: 1cef996f1dd65b767953d3f060e9be14c7ea180f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf0a655e1ba4600149e8a3b941ef0813be2094e2f3518e8b17047b337498385231edd1b66cf4327b9402a20ffefd0788a209da00df09f61d3b2ae313c54e001d
|
7
|
+
data.tar.gz: 8dff6f710902de56fe5c333e1423f58f80298b4e71f4d8b4920aef2dea64a469335327d405a4f1fd59ffa25e5a94ac8c5d92488dd90cfe270fe122407d843839
|
@@ -26,7 +26,7 @@ module DeletedAt
|
|
26
26
|
|
27
27
|
def create_with_deleted_at(attributes = nil, &block)
|
28
28
|
if archive_with_deleted_at?
|
29
|
-
const_get(:All).create_without_deleted_at(attributes, &block)
|
29
|
+
const_get(:All).create_without_deleted_at(attributes, &block).becomes(self)
|
30
30
|
else
|
31
31
|
create_without_deleted_at(attributes, &block)
|
32
32
|
end
|
@@ -34,7 +34,7 @@ module DeletedAt
|
|
34
34
|
|
35
35
|
def create_with_deleted_at!(attributes = nil, &block)
|
36
36
|
if archive_with_deleted_at?
|
37
|
-
const_get(:All).create_without_deleted_at!(attributes, &block)
|
37
|
+
const_get(:All).create_without_deleted_at!(attributes, &block).becomes(self)
|
38
38
|
else
|
39
39
|
create_without_deleted_at!(attributes, &block)
|
40
40
|
end
|
data/lib/deleted_at/version.rb
CHANGED