simpler_state_machine 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -43,13 +43,12 @@ module SimplerStateMachine
|
|
43
43
|
|
44
44
|
# Set the initial status value
|
45
45
|
def initialize(*args)
|
46
|
-
self.send("#{self.class.state_machine.state_field}=", self.class.state_machine.states[self.class.state_machine.initial_state].to_i)
|
47
|
-
|
48
46
|
begin
|
49
47
|
super
|
50
48
|
rescue ArgumentError # Catch in case the super does not get parameters
|
51
49
|
super()
|
52
50
|
end
|
51
|
+
self.send("#{self.class.state_machine.state_field}=", self.class.state_machine.states[self.class.state_machine.initial_state].to_i)
|
53
52
|
end
|
54
53
|
|
55
54
|
# Return the enum status
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simpler_state_machine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|