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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e17a8a535128a81c7ec16565a2b802fdf28a1c57
4
- data.tar.gz: 58a9620ae9c91547e0f2ea5d014786e8f45ca44d
3
+ metadata.gz: d07fa54902e77a5441afc4b4cf356ef2856e9d10
4
+ data.tar.gz: 1cef996f1dd65b767953d3f060e9be14c7ea180f
5
5
  SHA512:
6
- metadata.gz: 429ed024cbd541645286675af000761a22e337e221b22dce35ce55cc0c25e826648df941613a20d9ae8b1b47ee467ae007af255e98dd3541d71edcbd71aa8fe8
7
- data.tar.gz: af8ea5ec6e38083de40b3a061e09ab1a357ba942851cd496597d932aaa04ce2176f40e58351144132a93771ae4fd7409b22fccaea2f322c8027494c1527898f0
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
@@ -1,3 +1,3 @@
1
1
  module DeletedAt
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deleted_at
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Stevens