lib/micro/case/result/transitions.rb in u-case-3.1.0 vs lib/micro/case/result/transitions.rb in u-case-4.0.0

- old
+ new

@@ -3,14 +3,12 @@ module Micro class Case class Result class Transitions MapEverything = -> (result, use_case_attributes) do - result_track = result.success? ? :success : :failure - { use_case: { class: result.use_case.class, attributes: use_case_attributes }, - result_track => { type: result.type, result: result.data }, + result.to_sym => { type: result.type, result: result.data }, accessible_attributes: result.accessible_attributes } end end end