Sha256: 82d333be25c0355347558ee6a872cceeb3ef743de50adde2640540e783104d46

Contents?: true

Size: 508 Bytes

Versions: 9

Compression:

Stored size: 508 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

9 entries across 9 versions & 1 rubygems

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