Sha256: 4b172e461aeeffc72706d3d9b0ac631bccb79437caf7729f73605b579d84a195

Contents?: true

Size: 453 Bytes

Versions: 9

Compression:

Stored size: 453 Bytes

Contents

class SessionTrackingController < ActionController::Base
  protect_from_forgery

  def index
    render json: {}
  end

  def initializer
    Bugsnag.session_tracker.send_sessions
    render json: {}
  end

  def manual
    Bugsnag.start_session
    Bugsnag.session_tracker.send_sessions
    render json: {}
  end

  def multi_sessions
    (0...100).each { Bugsnag.start_session }
    Bugsnag.session_tracker.send_sessions
    render json: {}
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
bugsnag-6.15.0 features/fixtures/rails3/app/app/controllers/session_tracking_controller.rb
bugsnag-6.14.0 features/fixtures/rails3/app/app/controllers/session_tracking_controller.rb
bugsnag-6.13.1 features/fixtures/rails3/app/app/controllers/session_tracking_controller.rb
bugsnag-6.13.0 features/fixtures/rails3/app/app/controllers/session_tracking_controller.rb
bugsnag-6.12.2 features/fixtures/rails3/app/app/controllers/session_tracking_controller.rb
bugsnag-6.12.1 features/fixtures/rails3/app/app/controllers/session_tracking_controller.rb
bugsnag-6.12.0 features/fixtures/rails3/app/app/controllers/session_tracking_controller.rb
bugsnag-6.11.1 features/fixtures/rails3/app/app/controllers/session_tracking_controller.rb
bugsnag-6.11.0 features/fixtures/rails3/app/app/controllers/session_tracking_controller.rb