Skip to content

Commit

Permalink
Default to false and flip to a minor version for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Wilde committed Jun 19, 2016
1 parent 5739f92 commit ef5b6b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/aasm/base.rb
Expand Up @@ -24,7 +24,7 @@ def initialize(klass, name, state_machine, options={}, &block)
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
Expand Down
2 changes: 1 addition & 1 deletion lib/aasm/version.rb
@@ -1,3 +1,3 @@
module AASM
VERSION = "5.0.0"
VERSION = "4.11.0"
end
4 changes: 2 additions & 2 deletions spec/models/validator.rb
Expand Up @@ -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

Expand Down Expand Up @@ -78,7 +78,7 @@ def before_all_transactions
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
Expand Down

0 comments on commit ef5b6b3

Please sign in to comment.