purgatory 6.0.2 → 6.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/purgatory/purgatory.rb +2 -1
- data/purgatory.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2af3c60d4f7b1c69ed124e020216752e1078b24eafeea8af633ec91ab25c1a14
|
4
|
+
data.tar.gz: f731d8381bc1430a47999a0dfbef2acba055620c0410cebd92a1585495a027d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e42df9ba9269376d816c414c4dce1f7f115ab66598d2bf98965d4d8c53098f636819def2be40cc394cbe7a4efd995746206a3256f21e6c4ac40e9d0840143a1
|
7
|
+
data.tar.gz: c6b61df8ad74d59bc3d86e2e8d64634f406edaa81c7c91d809316f45096361f101400f4518aded25fae3b5a220d015a683a2b77ad8aa288bad7dfeece02b2dfb
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
6.0.
|
1
|
+
6.0.3
|
data/lib/purgatory/purgatory.rb
CHANGED
@@ -16,7 +16,7 @@ class Purgatory < ActiveRecord::Base
|
|
16
16
|
def self.pending
|
17
17
|
where(approved_at: nil)
|
18
18
|
end
|
19
|
-
|
19
|
+
|
20
20
|
def self.approved
|
21
21
|
where ["approved_at IS NOT NULL"]
|
22
22
|
end
|
@@ -51,6 +51,7 @@ class Purgatory < ActiveRecord::Base
|
|
51
51
|
unless approved?
|
52
52
|
success = soul_with_changes.save
|
53
53
|
if performable_method.present? && success
|
54
|
+
performable_method[:kwargs] ||= {}
|
54
55
|
success = soul.send(performable_method[:method], *performable_method[:args], **performable_method[:kwargs])
|
55
56
|
end
|
56
57
|
|
data/purgatory.gemspec
CHANGED