new version 3.0.6: bugfix: if configured to skip validation the code does not validate anymore

This commit is contained in:
Thorsten Böttger 2012-05-17 22:05:43 +12:00
parent 32c1a242ef
commit 54b44c93e4
3 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,9 @@
# CHANGELOG
## 3.0.6
* bugfix: if configured to skip validation the code does not validate anymore
## 3.0.5
* bugfix: get rid of error with old rubygems versions

View File

@ -183,7 +183,7 @@ module AASM
old_value = read_attribute(self.class.aasm_column)
write_attribute(self.class.aasm_column, state.to_s)
success = if AASM::StateMachine[self.class].config.skip_validation_on_save && !self.valid?
success = if AASM::StateMachine[self.class].config.skip_validation_on_save
self.class.update_all({ self.class.aasm_column => state.to_s }, self.class.primary_key => self.id) == 1
else
self.save

View File

@ -1,3 +1,3 @@
module AASM
VERSION = "3.0.5"
VERSION = "3.0.6"
end