Sha256: 079138f28a054d943ea812811eac3aed067931ccd7e9bc96f8b06e0771951d6a
Contents?: true
Size: 999 Bytes
Versions: 11
Compression:
Stored size: 999 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 file_upload this = will_crash end def set_session_data session[:some_value] = 'this-is-a-cool-value' render :json => {} end def use_session_data oh = this_is_crashing! 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
11 entries across 11 versions & 1 rubygems