delay_henka 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/delay_henka/scheduled_change.rb +7 -3
- data/lib/delay_henka/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3005f11e612f403e705bf989998e6aad752c88f5
|
4
|
+
data.tar.gz: fac7c914ed39c4009311bcd63293e9fc11a3fce8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d6aadd6f2ddecbd3abe95d74783f3947ec363d932988b7c9d16ef951423ea6ed97a2241b354d334c12dfbbeae1ddb43291c05eb5e4e7330ee071a71912f66d6
|
7
|
+
data.tar.gz: 0f1afcc612f302076eedefafd2f38c18bdf458d4fdcbbc71d3e688755579582eb26548a87d022da965122e538ac9c33b1c8de446a4e816a404a9f106a4a6f270
|
@@ -26,10 +26,14 @@ module DelayHenka
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def apply_change
|
29
|
-
if changeable
|
30
|
-
update(
|
29
|
+
if changeable
|
30
|
+
if changeable.update(attribute_name => new_value)
|
31
|
+
update(state: STATES[:COMPLETED])
|
32
|
+
else
|
33
|
+
update(state: STATES[:ERRORED], error_message: changeable.errors.full_messages.join(', '))
|
34
|
+
end
|
31
35
|
else
|
32
|
-
update(state: STATES[:ERRORED], error_message:
|
36
|
+
update(state: STATES[:ERRORED], error_message: 'Target record cannot be found')
|
33
37
|
end
|
34
38
|
end
|
35
39
|
|
data/lib/delay_henka/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delay_henka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zino
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|