Module: RequestsHelper

Defined in:
app/helpers/requests_helper.rb

Overview

:nodoc: all

Instance Method Summary collapse

Instance Method Details

#request_status(request) ⇒ Object


2
3
4
5
# File 'app/helpers/requests_helper.rb', line 2

def request_status(request)
  state = request.state.presence || 'unknown'
  (:span, state.upcase, class: "request-state text-#{state.downcase}")
end