state_machinable 0.0.6 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/state_machinable/base.rb +1 -1
- data/lib/state_machinable/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: a1ebae403b49436628efd36d4360f4bd600debaa
|
4
|
+
data.tar.gz: d48797c0e74c559a4b55fc24aa5333d4a95a17b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ad0b322a62e193d98a8a1238bccc4bf49febdb8dd5e2161620b81c8cab6be9c74b94ef15ec2d06927faaf00611d7af344dc10f820c2a6364a03cd55ad0a674d
|
7
|
+
data.tar.gz: c9e0edd4b82bb51f9c930a88de4d6e7941eb6af45eef10358cd7969278db535900caa3b7a0fdcfa1e0db2e735762712c09deaade6088dbf7c6e268b8edb5cd47
|
@@ -23,7 +23,7 @@ module StateMachinable
|
|
23
23
|
end
|
24
24
|
|
25
25
|
after_transition do |obj, transition|
|
26
|
-
obj.
|
26
|
+
obj.update(:current_state => transition.to_state)
|
27
27
|
|
28
28
|
state_class = obj.state_machine.class.state_class(transition.to_state)
|
29
29
|
if state_class.present? && state_class.respond_to?(:enter)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: state_machinable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Santiago Herrera
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|