deleted_at 0.2.2 → 0.2.3

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: f0dbd1191992d563691e2cb03bfacfafcb308b12
4
- data.tar.gz: e1b31685bc435d6cf3e9d5ce60266a8a03b620c0
3
+ metadata.gz: e17a8a535128a81c7ec16565a2b802fdf28a1c57
4
+ data.tar.gz: 58a9620ae9c91547e0f2ea5d014786e8f45ca44d
5
5
  SHA512:
6
- metadata.gz: a1795c5da2dd398338630cfd73e73c48d87e492f48b578ba2bb69b106f827f89cb05be7a5fb8011abd9648a0c95885666809dc6a404f1180e32a54f07068872b
7
- data.tar.gz: 4df3ac496604622b1058784f4da4381d7ba87cf411145a6171126a74f72f99091c49bafe25305bc6785e17a7db2e706b6421d0fbada7ffc1892be7becdf53850
6
+ metadata.gz: 429ed024cbd541645286675af000761a22e337e221b22dce35ce55cc0c25e826648df941613a20d9ae8b1b47ee467ae007af255e98dd3541d71edcbd71aa8fe8
7
+ data.tar.gz: af8ea5ec6e38083de40b3a061e09ab1a357ba942851cd496597d932aaa04ce2176f40e58351144132a93771ae4fd7409b22fccaea2f322c8027494c1527898f0
@@ -17,6 +17,7 @@ module DeletedAt
17
17
  end
18
18
  end
19
19
  alias_method_chain :create, :deleted_at
20
+ alias_method_chain :create!, :deleted_at
20
21
  end
21
22
 
22
23
  end
@@ -27,7 +28,15 @@ module DeletedAt
27
28
  if archive_with_deleted_at?
28
29
  const_get(:All).create_without_deleted_at(attributes, &block)
29
30
  else
30
- create_without_deleted_at
31
+ create_without_deleted_at(attributes, &block)
32
+ end
33
+ end
34
+
35
+ def create_with_deleted_at!(attributes = nil, &block)
36
+ if archive_with_deleted_at?
37
+ const_get(:All).create_without_deleted_at!(attributes, &block)
38
+ else
39
+ create_without_deleted_at!(attributes, &block)
31
40
  end
32
41
  end
33
42
 
@@ -1,3 +1,3 @@
1
1
  module DeletedAt
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
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.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Stevens