Sha256: b1ef29e3b74fa621fa672ac2c08b15c67964673ec3bce9a5a86abefc361f356e

Contents?: true

Size: 507 Bytes

Versions: 13

Compression:

Stored size: 507 Bytes

Contents

class MongoController < ApplicationController
  def success_crash
    doc = MongoModel.create(string_field: "String")
    doc.save
    "Statement".prepnd("Failing")
  end

  def get_crash
    MongoModel.where(string_field: true).as_json
    MongoModel.any_of({string_field: true}, {numeric_field: 123}).as_json
    "Statement".prepnd("Failing")
  end

  def failure_crash
    begin
      Mongoid::Clients.default.database.command(:bogus => 1)
    rescue
    end

    "Statement".prepnd("Failing")
  end
end

Version data entries

13 entries across 9 versions & 1 rubygems

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