class Fett::App
Public Instance Methods
transaction(options) { || ... }
click to toggle source
# File lib/fett/app.rb, line 59 def transaction(options, &block) begin status options[:success] response = yield return if options[:success] == 204 json response rescue RuntimeError => error status 400 json error: error.message end end