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