RubyGems
npm
Organizations
Log in
Sign up
RubyGems
dm-is-persistent_state_machine
Versions diffs
0.1.0 → 0.1.1
dm-is-persistent_state_machine 0.1.0 → 0.1.1
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (4)
hide
show
data/VERSION
+1
-1
data/dm-is-persistent_state_machine.gemspec
+1
-1
data/lib/dm-is-persistent_state_machine/is/persistent_state_machine.rb
+1
-0
metadata
+1
-1
data/VERSION
CHANGED
Viewed
@@ -1 +1 @@
1
-
0.1.
0
1
+
0.1.
1
data/dm-is-persistent_state_machine.gemspec
CHANGED
Viewed
@@ -5,7 +5,7 @@
5
5
6
6
Gem::Specification.new do |s|
7
7
s.name = %q{dm-is-persistent_state_machine}
8
-
s.version = "0.1.
0
"
8
+
s.version = "0.1.
1
"
9
9
10
10
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
s.authors = ["michael"]
data/lib/dm-is-persistent_state_machine/is/persistent_state_machine.rb
CHANGED
Viewed
@@ -113,6 +113,7 @@ module DataMapper
113
113
after :save do
114
114
if (@prev_state && @prev_state != state)
115
115
StateChange.create(:from => @prev_state, :to => state, :created_at => DateTime.now)
116
+
@prev_state = nil # clean up cache
116
117
end
117
118
end
118
119
metadata
CHANGED
Viewed
@@ -1,7 +1,7 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: dm-is-persistent_state_machine
3
3
version: !ruby/object:Gem::Version
4
-
version: 0.1.
0
4
+
version: 0.1.
1
5
5
platform: ruby
6
6
authors:
7
7
- michael