Closed emaglio closed 7 years ago
if a step return false the flow is moving to the fail pipe
class BlogPost::New < Trailblazer::Operation step Policy::Guard( :authorize! ) step Model ( BlogPost, :new ) step Contract::Build( constant: BlogPost::Contract::Create ) def authorize!(options, current_user:, **) current_user.signed_in? end end
if a step return false the flow is moving to the fail pipe