Sha256: 2362c7a964236d94da1fa218df49ecbf8fd7a67fceffbb164d2c184e814ff65c
Contents?: true
Size: 354 Bytes
Versions: 3
Compression:
Stored size: 354 Bytes
Contents
class StatusesController < DiagnosticsApplicationController def show respond_to do |format| format.html {} format.text { render text_response } end end private def text_response if diagnostic_status == :passed { :text => 'PASS', :status => 200 } else { :text => 'FAIL', :status => 500 } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
diagnostics-0.0.4 | app/controllers/statuses_controller.rb |
diagnostics-0.0.3 | app/controllers/statuses_controller.rb |
diagnostics-0.0.2 | app/controllers/statuses_controller.rb |