lib/end_state/transition.rb in end_state-1.1.0 vs lib/end_state/transition.rb in end_state-1.1.1
- old
+ new
@@ -29,11 +29,11 @@
private
def failed(error, message)
return false unless mode == :hard
- fail error, "The transition to #{state} was #{message}: #{object.failure_messages.join(', ')}"
+ Kernel.fail error, "The transition to #{state} was #{message}: #{object.failure_messages.join(', ')}"
end
def guard_failed
failed GuardFailed, 'blocked'
end
@@ -41,10 +41,10 @@
def conclude_failed
failed ConcluderFailed, 'rolled back'
end
def params_not_provided(params_list)
- fail MissingParams, "Missing params: #{params_list.join(',')}"
+ Kernel.fail MissingParams, "Missing params: #{params_list.join(',')}"
end
def conclude(params={})
concluders.each_with_object([]) do |concluder, concluded|
concluded << concluder