Sha256: 3bbb39d5ff05420cdcccb107ceda8ce514a3dd6a37d5666eaaf0417c44d590af

Contents?: true

Size: 622 Bytes

Versions: 5

Compression:

Stored size: 622 Bytes

Contents

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

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

  def report_exception
    begin
      foo = bar
    rescue => e
      Ratchetio.report_exception(e, ratchetio_request_data, ratchetio_person_data)
    end
  end

  def cause_exception
    foo = bar
  end

  def current_user
    User.find_by_encrypted_password(cookies[:session_id])
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ratchetio-0.7.1 spec/dummyapp/app/controllers/home_controller.rb
ratchetio-0.7.0 spec/dummyapp/app/controllers/home_controller.rb
ratchetio-0.6.3 spec/dummyapp/app/controllers/home_controller.rb
ratchetio-0.6.1 spec/dummyapp/app/controllers/home_controller.rb
ratchetio-0.6.0 spec/dummyapp/app/controllers/home_controller.rb