Add checks to Mongoid::Config.load! so that it doesn't raise if rails/mongoid is loaded but rails is not.
Add checks to Mongoid::Config.load! so that it doesn't raise if rails/mongoid is loaded but rails is not.

tengine/mongoid,socialreferral/mongoid,drobune/mongoid,rebelhold/mongoid,lowang/mongoid,kay-kim/mongoid,lucasas/mongoid,mzsanford/mongoid,msaffitz/mongoid,Zhomart/mongoid,greggroth/mongoid,MSNexploder/mongoid,itbakery/mongoid,Welovroi/mongoid,fortnightlabs/mongoid,dnd/mongoid,fbernier/mongoid,kayakyakr/mongoid,leedo/mongoid,demarque/mongoid,nicolasblanco/mongoid,kcdragon/mongoid,jonhyman/mongoid,crowdtap/mongoid,luxerama/mongoid,jbrien/mongoid,mschulkind/mongoid,rymai/mongoid,500px/mongoid,genexp/mongoid,sivagollapalli/mongoid,leozhang37/mongoid,dblock/mongoid,justinko/mongoid,haihappen/mongoid,ErisExchange/mongoid,bigbenli/mongoid,lackac/mongoid,rafaelgaspar/mongoid,itbakery/mongoid,niedhui/mongoid,arnkorty/mongoid,tzar/mongoid,Welovroi/mongoid,skyeagle/mongoid,bjori/mongoid,mathieuravaux/mongoid,stevebartholomew/mongoid,jstrocel/mongoid,evansagge/mongoid,potatosalad/mongoid,matsimitsu/mongoid,kevinmarvin/mongoid,chetan/mongoid,infiverve/mongoid,maxd/mongoid,fredjean/mongoid,bencrouse/mongoid,rogerz42892/mongoid,fredjean/mongoid,rinmu/mongoid,ginty/mongoid,atomical/mongoid,matbox/mongoid,rmm5t/mongoid,gregmolnar/mongoid,demarque/mongoid,kuadrosx/mongoid,ElvinEfendi/mongoid,77Agency/mongoid,nullstyle/mongoid,dustinwatson/mongoid,blackxored/mongoid,zenjoy/mongoid,HeeL/mongoid-1,voldy/mongoid,mgartner/mongoid,DanielVartanov/mongoid,rpocklin/mongoid,johnnyshields/mongoid,Shop2market/mongoid,cao7113/mongoid,glebtv/mongoid,genexp/mongoid,eljojo/mongoid,semaperepelitsa/mongoid,glebtv/mongoid,apptentive-engineering/mongoid,niedhui/mongoid,flada-auxv/mongoid,crealytics/mongoid,KoanHealth/mongoid,herimedia/mongoid,janroesner/mongoid,hxx/mongoid,dannguyen/mongoid,PerfectMemory/mongoid,kostyantyn/mongoid,Tickaroo/mongoid2,mgartner/mongoid,env0der/mongoid,joelcogen/mongoid,dsachitano/mongoid,herimedia/mongoid,bjori/mongoid,nfo/mongoid,mongoid/mongoid,Exoth/mongoid,chriseppstein/mongoid,camallen/mongoid,abezzub/mongoid,aj0strow/mongoid,nagachika/mongoid,fortnightlabs/mongoid,nickhoffman/mongoid,jakcharlton/mongoid,luxerama/mongoid,derickbailey/mongoid,hashrocketeer/mongoid,nullstyle/mongoid,astjohn/mongoid,Spaceghost/mongoid,zaithottakath/mongoid,ganlron/mongoid,derickbailey/mongoid,uniiverse/mongoid,tolsen/mongoid,kayakyakr/mongoid,KoanHealth/mongoid,skiz/mongoid,neerfri/mongoid,janroesner/mongoid,drfeelngood/mongoid,hxx/mongoid,nickhoffman/mongoid,captain-lucas/mongoid,mzsanford/mongoid,sujal/mongoid,tzar/mongoid,stellard/mongoid,zBMNForks/mongoid,snapfish-soma/mongoid,brettgoulder/mongoid-1,evansagge/mongoid,lackac/mongoid,aleksclark/mongoid,malditogeek/mongoid,xentek/mongoid,jeffreyiacono/mongoid,estolfo/mongoid,likealittle/mongoid,spiegela/mongoid,lowang/mongoid,Codas/mongoid,eljojo/mongoid,atomical/mongoid,javmorin/mongoid,mongodb/mongoid,caiofilipini/mongoid,absperf/mongoid,uranazo/mongoid,mgolovnia/mongoid,capnregex/mongoid,jamesalmond/mongoid,Subskii/mongoid,akirasosa/mongoid,hookercookerman/mongoid,tvon/mongoid,piotrj/mongoid,mulder/mongoid,sideci-sample/sideci-sample-mongoid,haihappen/mongoid,stnguyen/mongoid,uniiverse/mongoid,sideci-sample/sideci-sample-mongoid,nviennot/mongoid,praecipula/mongoid,tombruijn/mongoid,mikerobe/mongoid,wuboy0307/mongoid,gregmolnar/mongoid,ganlron/mongoid,dbkbali/mongoid,irakli-janiashvili/mongoid,asantamar/mongoid,parov/mongoid,blackxored/mongoid,crowdtap/mongoid,hadees/mongoid,simi/mongoid,kostyantyn/mongoid,Flameeyes/mongoid,cao7113/mongoid,dbkbali/mongoid,shingara/mongoid,captain-lucas/mongoid,hubertlepicki/mongoid,incorvia/mongoid,krasnoukhov/mongoid,aagrawal2001/mongoid,asaaki/mongoid,tvon/mongoid,bigbenli/mongoid,rafaelgaspar/mongoid,jtescher/mongoid,mathieuravaux/mongoid,jasl/mongoid,robwil/mongoid,kryzhovnik/mongoid,Subskii/mongoid,gregory-m/mongoid,amw/mongoid,potatosalad/mongoid,alexandru-calinoiu/mongoid,hadees/mongoid,flada-auxv/mongoid,tricknotes/mongoid,rosylilly/mongoid,bearded/mongoid,HRNewMedia/mongoid,MSNexploder/mongoid,travis-repos/mongoid,sukeerthiadiga/mongoid,praecipula/mongoid,skiz/mongoid,tagliala/mongoid,rogerz42892/mongoid,irakli-janiashvili/mongoid,mitijain123/mongoid,jiren/mongoid,gicappa/mongoid,manuelmorales/mongoid,jeyb/mongoid,tricknotes/mongoid,albus522/mongoid,franc/mongoid,FestivalBobcats/mongoid,HeeL/mongoid-1,sporkd/mongoid,narutosanjiv/mongoid,iGoDigital-LLC/mongoid,cpuguy83/mongoid,evendis/mongoid,alexrothenberg/mongoid,nagachika/mongoid,CIRCUITLLC/mongoid,hbakhtiyor/mongoid,aleksclark/mongoid,SumeruSoftware/mongoid,jonasschneider/mongoid,rafaelfranca/mongoid,asaaki/mongoid,mattconnolly/mongoid,Zhomart/mongoid,bencrouse/mongoid,Aupajo/mongoid-1,anuprit/mongoid,CIRCUITLLC/mongoid,zanker/mongoid,trmmy/mongoid,travis-repos/mongoid,ginty/mongoid,matbox/mongoid,ryanong/mongoid,ElvinEfendi/mongoid,Speakol/mongoid,rpocklin/mongoid,flexoid/mongoid,brynary/mongoid,timgluz/mongoid,johnnyshields/mongoid,hookercookerman/mongoid,alex-klepa/mongoid,imomoisoft/mongoid,bobbytables/mongoid,Azzurrio/mongoid,arunagw/mongoid,crealytics/mongoid,maxd/mongoid,moretea/mongoid,ches/mongoid,tagliala/mongoid,sepastian/mongoid,fbernier/mongoid,leedo/mongoid,kryzhovnik/mongoid,evendis/mongoid,joshsoftware/mongoid,jordelver/mongoid,karmakaze/mongoid,chriseppstein/mongoid,joshsoftware/mongoid,amw/mongoid,ono/mongoid,malditogeek/mongoid,jordoh/mongoid,flexoid/mongoid,rubrikkfabrikken/mongoid,sporkd/mongoid,X0nic/mongoid,marcweil/mongoid,colinyoung/mongoid,nviennot/mongoid,imomoisoft/mongoid,jamesalmond/mongoid,gregory-m/mongoid,cpuguy83/mongoid,cjab/mongoid,mysociety/mongoid,dsachitano/mongoid,aileron/mongoid,greggroth/mongoid,timgluz/mongoid,etomic/mongoid,krasnoukhov/mongoid,slbug/mongoid,grossws/mongoid,simi/mongoid,Houdini/mongoid,robinst/mongoid,charliehq/mongoid,jeyb/mongoid,colinyoung/mongoid,camallen/mongoid,gullitmiranda/mongoid,justinko/mongoid,hfwang/mongoid,jasl/mongoid,cmpolis/mongoid,lucasas/mongoid,ErisExchange/mongoid,uranazo/mongoid,ches/mongoid,i0rek/mongoid,canavese/mongoid,kslazarev/mongoid,Sharevari-Inc/mongoid,aj0strow/mongoid,dakatsuka/mongoid,icambron/mongoid,Winslett/mongoid,drfeelngood/mongoid,hubertlepicki/mongoid,fujimura/mongoid,tolsen/mongoid,chetan/mongoid,akm/mongoid,Empact/mongoid,jordoh/mongoid,narutosanjiv/mongoid,hfwang/mongoid,blt04/mongoid,cavneb/mongoid,Winslett/mongoid,subhashb/mongoid,sivagollapalli/mongoid,bobbytables/mongoid,Sharevari-Inc/mongoid,Azzurrio/mongoid,jetheredge/mongoid,sukeerthiadiga/mongoid,schnittchen/mongoid,teaforthecat/mongoid,jim/mongoid,mongodb/mongoid,rosylilly/mongoid,aagrawal2001/mongoid,joneslee85/mongoid,dustinwatson/mongoid,jtescher/mongoid,jakcharlton/mongoid,romanbsd/mongoid,infiverve/mongoid,nusco/mongoid,kentaroi/mongoid,X0nic/mongoid,asantamar/mongoid,Spaceghost/mongoid,neerfri/mongoid,iGoDigital-LLC/mongoid,mulder/mongoid,kevinmarvin/mongoid,razum2um/mongoid,karmakaze/mongoid,lawrencecurtis/mongoid,kay-kim/mongoid,javmorin/mongoid,elia/mongoid,jstrocel/mongoid,mitio/mongoid,MadRabbit/mongoid,Speakol/mongoid,mysociety/mongoid,voldy/mongoid,zBMNForks/mongoid,shotoso/mongoid,elia/mongoid,jetthoughts/mongoid,zaithottakath/mongoid,joelcogen/mongoid,tombruijn/mongoid,ahoward/mongoid,robwil/mongoid,robotmay/mongoid,bearded/mongoid,canavese/mongoid,rmm5t/mongoid,joshleitzel/mongoid,nextmat/mongoid,xentek/mongoid,loginx/mongoid,FestivalBobcats/mongoid,eddanger/mongoid,manuelmorales/mongoid,DouweM/mongoid,stevebartholomew/mongoid,goshakkk/mongoid,anuprit/mongoid,wyattisimo/mongoid,joshleitzel/mongoid,skippy/mongoid,mattconnolly/mongoid,johnny-miyake/mongoid,razum2um/mongoid,marcweil/mongoid,matsimitsu/mongoid,rafaelfranca/mongoid,dannguyen/mongoid,brettgoulder/mongoid-1,PerfectMemory/mongoid,cleishm/mongoid,priyaaank/mongoid,jetthoughts/mongoid,icambron/mongoid,kuruma-gs/mongoid,jonhyman/mongoid,abscondment/mongoid,mongodb/mongoid,codedogfish/mongoid,etomic/mongoid,500px/mongoid,wuboy0307/mongoid,stnguyen/mongoid,gullitmiranda/mongoid,kuruma-gs/mongoid,tetsuo692/mongoid,bdmac/mongoid,afeld/mongoid,byroot/mongoid,brynary/mongoid,balauru/mongoid,DanielVartanov/mongoid,franc/mongoid,jordelver/mongoid,dnd/mongoid,LastStar/mongoid,bdmac/mongoid,jim/mongoid,subhashb/mongoid,cmpolis/mongoid,gicappa/mongoid,arnkorty/mongoid,joneslee85/mongoid,estolfo/mongoid,rubrikkfabrikken/mongoid,hashrocketeer/mongoid,kcdragon/mongoid,shotoso/mongoid,socialreferral/mongoid,arunagw/mongoid,incorvia/mongoid,koraktor/mongoid,Exoth/mongoid,apptentive-engineering/mongoid,stellard/mongoid,balauru/mongoid,codedogfish/mongoid,leemhenson/mongoid,matadon/mongoid,grimen/mongoid,eddanger/mongoid,alexrothenberg/mongoid,mongoid/mongoid,goshakkk/mongoid,getaroom/mongoid,drobune/mongoid,Numerico/mongoid,sepastian/mongoid,rinmu/mongoid,nextmat/mongoid,77Agency/mongoid,skippy/mongoid,parov/mongoid,canvas-drw/mongoid,msaffitz/mongoid,Codas/mongoid,spiegela/mongoid,kuadrosx/mongoid,shingara/mongoid,hbakhtiyor/mongoid,canvas-drw/mongoid,johnny-miyake/mongoid,iamnader/mongoid-2,manikandan-kandasamy/mongoid,Numerico/mongoid,mitijain123/mongoid,tetsuo692/mongoid,teaforthecat/mongoid,zenjoy/mongoid,abezzub/mongoid,cleishm/mongoid,akirasosa/mongoid,ryanong/mongoid,mschulkind/mongoid,ahoward/mongoid,trmmy/mongoid,SumeruSoftware/mongoid,jbrien/mongoid,mash-ltd/mongoid,wyattisimo/mongoid,caiofilipini/mongoid,alexandru-calinoiu/mongoid,manikandan-kandasamy/mongoid,jasonsydes/mongoid,charliehq/mongoid,akm/mongoid,moretea/mongoid,grossws/mongoid,lawrencecurtis/mongoid,abscondment/mongoid,LastStar/mongoid,aileron/mongoid,kslazarev/mongoid,cavneb/mongoid,kentaroi/mongoid,mash-ltd/mongoid,iboard/mongoid-1,jeffreyiacono/mongoid,afeld/mongoid,mikerobe/mongoid,theirishpenguin/mongoid,zanker/mongoid,nfo/mongoid,slbug/mongoid,nusco/mongoid