1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00

Default to false and flip to a minor version for now.

This commit is contained in:
Matthew Wilde 2016-06-18 22:30:42 -07:00
parent 5739f92219
commit ef5b6b3fb4
3 changed files with 4 additions and 4 deletions

View file

@ -24,7 +24,7 @@ module AASM
configure :skip_validation_on_save, false
# raise if the model is invalid (in ActiveRecord)
configure :whiny_persistence, true
configure :whiny_persistence, false
# use requires_new for nested transactions (in ActiveRecord)
configure :requires_new_transaction, true

View file

@ -1,3 +1,3 @@
module AASM
VERSION = "5.0.0"
VERSION = "4.11.0"
end

View file

@ -10,7 +10,7 @@ class Validator < ActiveRecord::Base
include AASM
aasm :column => :status do
aasm :column => :status, :whiny_persistence => true do
before_all_transactions :before_all_transactions
after_all_transactions :after_all_transactions
@ -78,7 +78,7 @@ end
class MultipleValidator < ActiveRecord::Base
include AASM
aasm :left, :column => :status do
aasm :left, :column => :status, :whiny_persistence => true do
state :sleeping, :initial => true
state :running
state :failed, :after_enter => :fail