Sha256: f06a144226c9211903e5e93b77c97bb753eac91cf3c2c329ac6572cddccc6fbe
Contents?: true
Size: 397 Bytes
Versions: 1
Compression:
Stored size: 397 Bytes
Contents
module Trailblazer::V2_1 module Test module Run # DISCUSS: use Endpoint here? # DISCUSS: use Controller code here? module_function def run(operation_class, *args) result = operation_class.(*args) raise "[Trailblazer::V2_1] #{operation_class} wasn't run successfully. #{result.inspect}" if result.failure? result end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trailblazer-future-2.1.0.rc1 | lib/trailblazer/v2_1/operation/test.rb |