Module: TxghQueue::RespondWith

Defined in:
lib/txgh-queue/application.rb

Instance Method Summary collapse

Instance Method Details

#respond_with(resp) ⇒ Object



6
7
8
9
10
# File 'lib/txgh-queue/application.rb', line 6

def respond_with(resp)
  env['txgh.response'] = resp
  status resp.status
  json resp.body
end