Sha256: 1d69e606b4c7a50c8ffa20c1827389e692f928291e8bd9e33322341d50474464

Contents?: true

Size: 792 Bytes

Versions: 24

Compression:

Stored size: 792 Bytes

Contents

class HomeController < ApplicationController
  def index
    @users = User.all

    Rollbar.debug("Test message from controller with no data")
    Rollbar.debug("Test message from controller with extra data",
                  :foo => "bar", :num_users => @users.length)
  end

  def report_exception
    begin
      foo = bar
    rescue => e
      Rollbar.error(e)
    end
  end

  def deprecated_report_exception
    begin
      foo = bar
    rescue => e
      Rollbar.error(e)
    end
    render :json => {}
  end


  def cause_exception
    foo = bar
  end

  def current_user
    @current_user ||= User.find_by_id(cookies[:session_id])
  end

  def custom_current_user
    user = User.new
    user.id = 123
    user.username = 'test'
    user.email = 'email@test.com'
    user
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rollbar-2.1.1 spec/dummyapp/app/controllers/home_controller.rb
rollbar-2.1.0 spec/dummyapp/app/controllers/home_controller.rb
rollbar-2.0.2 spec/dummyapp/app/controllers/home_controller.rb
rollbar-2.0.1 spec/dummyapp/app/controllers/home_controller.rb
rollbar-2.0.0 spec/dummyapp/app/controllers/home_controller.rb
rollbar-1.5.3 spec/dummyapp/app/controllers/home_controller.rb
rollbar-1.5.2 spec/dummyapp/app/controllers/home_controller.rb
rollbar-1.5.1 spec/dummyapp/app/controllers/home_controller.rb
rollbar-1.5.0 spec/dummyapp/app/controllers/home_controller.rb
rollbar-1.4.5 spec/dummyapp/app/controllers/home_controller.rb
rollbar-1.4.4 spec/dummyapp/app/controllers/home_controller.rb
rollbar-1.4.3 spec/dummyapp/app/controllers/home_controller.rb
rollbar-1.4.2 spec/dummyapp/app/controllers/home_controller.rb
rollbar-1.4.1 spec/dummyapp/app/controllers/home_controller.rb
rollbar-1.4.0 spec/dummyapp/app/controllers/home_controller.rb
rollbar-1.3.2 spec/dummyapp/app/controllers/home_controller.rb
rollbar-1.3.1 spec/dummyapp/app/controllers/home_controller.rb
rollbar-1.3.0 spec/dummyapp/app/controllers/home_controller.rb
rollbar-1.2.13 spec/dummyapp/app/controllers/home_controller.rb
rollbar-1.2.12 spec/dummyapp/app/controllers/home_controller.rb