Sha256: 0637df805681cea3001d04b8ddc0e838004b1411e7378807c6eb20826151cb65

Contents?: true

Size: 421 Bytes

Versions: 24

Compression:

Stored size: 421 Bytes

Contents

class IgnoredError < RuntimeError
end

class IgnoreClassesController < ActionController::Base
  protect_from_forgery

  def index
    render json: {}
  end

  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

24 entries across 12 versions & 1 rubygems

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