Module: Txdb::RespondWith
- Defined in:
- lib/txdb/app.rb
Instance Method Summary collapse
Instance Method Details
#respond_with(resp) ⇒ Object
6 7 8 9 10 |
# File 'lib/txdb/app.rb', line 6 def respond_with(resp) env['txdb.response'] = resp status resp.status json resp.body end |