aasm 2.1.4 → 2.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/aasm/persistence/active_record_persistence.rb +1 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.5
|
@@ -180,7 +180,6 @@ module AASM
|
|
180
180
|
|
181
181
|
module WriteState
|
182
182
|
# Writes <tt>state</tt> to the state column and persists it to the database
|
183
|
-
# using update_attribute (which bypasses validation)
|
184
183
|
#
|
185
184
|
# foo = Foo.find(1)
|
186
185
|
# foo.aasm_current_state # => :opened
|
@@ -193,7 +192,7 @@ module AASM
|
|
193
192
|
old_value = read_attribute(self.class.aasm_column)
|
194
193
|
write_attribute(self.class.aasm_column, state.to_s)
|
195
194
|
|
196
|
-
unless self.save
|
195
|
+
unless self.save
|
197
196
|
write_attribute(self.class.aasm_column, old_value)
|
198
197
|
return false
|
199
198
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aasm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Barron
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2010-01-
|
14
|
+
date: 2010-01-30 00:00:00 -05:00
|
15
15
|
default_executable:
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|