Sha256: 95a0c2347542f2c614789998f42587bb9cbcbb99309d3f1786359abeced6cff8

Contents?: true

Size: 382 Bytes

Versions: 19

Compression:

Stored size: 382 Bytes

Contents

class IgnoredError < RuntimeError
end

class IgnoreClassesController < ActionController::Base
  protect_from_forgery

  def initializer
    Bugsnag.notify(IgnoredError.new)
    render json: {}
  end

  def after
    Bugsnag.configure do |conf|
      conf.ignore_classes << Kernel.const_get(params[:ignore])
    end
    Bugsnag.notify(IgnoredError.new)
    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/ignore_classes_controller.rb
bugsnag-6.15.0 features/fixtures/rails5/app/app/controllers/ignore_classes_controller.rb
bugsnag-6.14.0 features/fixtures/rails6/app/app/controllers/ignore_classes_controller.rb
bugsnag-6.14.0 features/fixtures/rails5/app/app/controllers/ignore_classes_controller.rb
bugsnag-6.13.1 features/fixtures/rails6/app/app/controllers/ignore_classes_controller.rb
bugsnag-6.13.1 features/fixtures/rails5/app/app/controllers/ignore_classes_controller.rb
bugsnag-6.13.0 features/fixtures/rails5/app/app/controllers/ignore_classes_controller.rb
bugsnag-6.13.0 features/fixtures/rails6/app/app/controllers/ignore_classes_controller.rb
bugsnag-6.12.2 features/fixtures/rails5/app/app/controllers/ignore_classes_controller.rb
bugsnag-6.12.2 features/fixtures/rails6/app/app/controllers/ignore_classes_controller.rb
bugsnag-6.12.1 features/fixtures/rails6/app/app/controllers/ignore_classes_controller.rb
bugsnag-6.12.1 features/fixtures/rails5/app/app/controllers/ignore_classes_controller.rb
bugsnag-6.12.0 features/fixtures/rails5/app/app/controllers/ignore_classes_controller.rb
bugsnag-6.12.0 features/fixtures/rails6/app/app/controllers/ignore_classes_controller.rb
bugsnag-6.11.1 features/fixtures/rails5/app/app/controllers/ignore_classes_controller.rb
bugsnag-6.11.0 features/fixtures/rails5/app/app/controllers/ignore_classes_controller.rb
bugsnag-6.10.0 features/fixtures/rails5/app/app/controllers/ignore_classes_controller.rb
bugsnag-6.9.0 features/fixtures/rails5/app/app/controllers/ignore_classes_controller.rb
bugsnag-6.8.0 features/fixtures/rails5/app/app/controllers/ignore_classes_controller.rb