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