Module: Railbar::ApplicationHelper

Defined in:
app/helpers/railbar/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#railbarObject



2
3
4
5
6
7
8
9
10
# File 'app/helpers/railbar/application_helper.rb', line 2

def railbar
  rails_env = Rails.env
  rails_version = Rails.version
  rails_host = request.host
  locals = { rails_env: rails_env,
             rails_host: rails_host,
             rails_version: rails_version }
  render partial: "railbar/railbar", locals: locals
end