Skip to content

Commit

Permalink
add "autosave: false" to transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Jan 7, 2018
1 parent 49e56c4 commit 6e4d7a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/order_list.rb
Expand Up @@ -23,7 +23,7 @@ def state_machine
OrderListStateMachine.new(self, transition_class: OrderListTransition)
end

has_many :order_list_transitions
has_many :order_list_transitions, autosave: false

delegate :can_transition_to?, :transition_to!, :transition_to, :current_state,
to: :state_machine
Expand Down

0 comments on commit 6e4d7a0

Please sign in to comment.