Sha256: d4e20a7e99925f80201836f170c05fd09183f63fd29fd7acb73102959dca5e77

Contents?: true

Size: 493 Bytes

Versions: 19

Compression:

Stored size: 493 Bytes

Contents

class AutoNotifyController < ActionController::Base
  protect_from_forgery

  def unhandled
    generate_unhandled_error
  end

  def handled
    Bugsnag.notify("handled string")
    render json: {}
  end

  def unhandled_after
    Bugsnag.configure do |conf|
      conf.auto_notify = false
    end
    generate_unhandled_error
  end

  def handled_after
    Bugsnag.configure do |conf|
      conf.auto_notify = false
    end
    Bugsnag.notify("handled string")
    render json: {}
  end
end

Version data entries

19 entries across 12 versions & 1 rubygems

Version Path
bugsnag-6.15.0 features/fixtures/rails6/app/app/controllers/auto_notify_controller.rb
bugsnag-6.15.0 features/fixtures/rails5/app/app/controllers/auto_notify_controller.rb
bugsnag-6.14.0 features/fixtures/rails6/app/app/controllers/auto_notify_controller.rb
bugsnag-6.14.0 features/fixtures/rails5/app/app/controllers/auto_notify_controller.rb
bugsnag-6.13.1 features/fixtures/rails6/app/app/controllers/auto_notify_controller.rb
bugsnag-6.13.1 features/fixtures/rails5/app/app/controllers/auto_notify_controller.rb
bugsnag-6.13.0 features/fixtures/rails5/app/app/controllers/auto_notify_controller.rb
bugsnag-6.13.0 features/fixtures/rails6/app/app/controllers/auto_notify_controller.rb
bugsnag-6.12.2 features/fixtures/rails5/app/app/controllers/auto_notify_controller.rb
bugsnag-6.12.2 features/fixtures/rails6/app/app/controllers/auto_notify_controller.rb
bugsnag-6.12.1 features/fixtures/rails6/app/app/controllers/auto_notify_controller.rb
bugsnag-6.12.1 features/fixtures/rails5/app/app/controllers/auto_notify_controller.rb
bugsnag-6.12.0 features/fixtures/rails5/app/app/controllers/auto_notify_controller.rb
bugsnag-6.12.0 features/fixtures/rails6/app/app/controllers/auto_notify_controller.rb
bugsnag-6.11.1 features/fixtures/rails5/app/app/controllers/auto_notify_controller.rb
bugsnag-6.11.0 features/fixtures/rails5/app/app/controllers/auto_notify_controller.rb
bugsnag-6.10.0 features/fixtures/rails5/app/app/controllers/auto_notify_controller.rb
bugsnag-6.9.0 features/fixtures/rails5/app/app/controllers/auto_notify_controller.rb
bugsnag-6.8.0 features/fixtures/rails5/app/app/controllers/auto_notify_controller.rb