module RailsMonitor::Monitoring

Public Instance Methods

index() click to toggle source
# File lib/rails_monitor.rb, line 14
def index
  @statuses = self.statuses

  respond_to do |format|
    format.html do
      render 'rails_monitor/status'
    end
  end
end
render_text_plain(text) click to toggle source
# File lib/rails_monitor.rb, line 24
def render_text_plain(text)
  headers['Content-type'] = 'text/plain'
  render :text => text
end