Module: RailsMonitor::Monitoring

Extended by:
ActiveSupport::Concern
Defined in:
lib/rails_monitor.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#indexObject



14
15
16
17
18
19
20
21
22
# 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) ⇒ Object



24
25
26
27
# File 'lib/rails_monitor.rb', line 24

def render_text_plain(text)
  headers['Content-type'] = 'text/plain'
  render :text => text
end