lib/trailblazer/endpoint/protocol.rb in trailblazer-endpoint-0.0.6 vs lib/trailblazer/endpoint/protocol.rb in trailblazer-endpoint-0.0.7

- old
+ new

@@ -22,11 +22,11 @@ Path(track_color: semantic, end_id: "End.#{semantic}", end_task: Activity::End.new(semantic: semantic), &block) end step :authenticate, Output(:failure) => _Path(semantic: :not_authenticated) do # step :handle_not_authenticated - end + end step :policy, Output(:failure) => _Path(semantic: :not_authorized) do # user from cookie, etc # step :handle_not_authorized end @@ -111,9 +111,8 @@ def self.extension_for_terminus_handler # this is called after {:output}. [[Trailblazer::Activity::TaskWrap::Pipeline.method(:insert_after), "task_wrap.call_task", ["endpoint.end_signal", method(:terminus_handler)]]] end end - - end + end # Protocol end end