Fix behavior for Enumerable-like ActiveRecord relations.
Fix behavior for Enumerable-like ActiveRecord relations.

kemenaran/gitlabhq,stanhu/gitlabhq,kitech/gitlabhq,allistera/gitlabhq,jirutka/gitlabhq,revaret/gitlabhq,yatish27/gitlabhq,htve/GitlabForChinese,koreamic/gitlabhq,LytayTOUCH/gitlabhq,fpgentil/gitlabhq,fantasywind/gitlabhq,ikappas/gitlabhq,duduribeiro/gitlabhq,Tyrael/gitlabhq,OtkurBiz/gitlabhq,rhels/gitlabhq,fantasywind/gitlabhq,SVArago/gitlabhq,ordiychen/gitlabhq,youprofit/gitlabhq,eliasp/gitlabhq,icedwater/gitlabhq,hzy001/gitlabhq,nmav/gitlabhq,eliasp/gitlabhq,jrjang/gitlab-ce,sue445/gitlabhq,youprofit/gitlabhq,manfer/gitlabhq,openwide-java/gitlabhq,chadyred/gitlabhq,theodi/gitlabhq,ordiychen/gitlabhq,per-garden/gitlabhq,fpgentil/gitlabhq,mavimo/gitlabhq,ferdinandrosario/gitlabhq,dreampet/gitlab,fgbreel/gitlabhq,hacsoc/gitlabhq,tempbottle/gitlabhq,michaKFromParis/gitlabhqold,TheWatcher/gitlabhq,DanielZhangQingLong/gitlabhq,copystudy/gitlabhq,H3Chief/gitlabhq,it33/gitlabhq,pulkit21/gitlabhq,fearenales/gitlabhq,screenpages/gitlabhq,Burick/gitlabhq,williamherry/gitlabhq,tk23/gitlabhq,DanielZhangQingLong/gitlabhq,julianengel/gitlabhq,vjustov/gitlabhq,cinderblock/gitlabhq,michaKFromParis/gitlabhqold,jrjang/gitlab-ce,allistera/gitlabhq,vjustov/gitlabhq,copystudy/gitlabhq,ksoichiro/gitlabhq,H3Chief/gitlabhq,childbamboo/gitlabhq,dreampet/gitlab,chadyred/gitlabhq,OlegGirko/gitlab-ce,tim-hoff/gitlabhq,martijnvermaat/gitlabhq,childbamboo/gitlabhq,kemenaran/gitlabhq,dwrensha/gitlabhq,liyakun/gitlabhq,sakishum/gitlabhq,Exeia/gitlabhq,manfer/gitlabhq,whluwit/gitlabhq,TheWatcher/gitlabhq,allysonbarros/gitlabhq,NKMR6194/gitlabhq,ttasanen/gitlabhq,koreamic/gitlabhq,MauriceMohlek/gitlabhq,WSDC-NITWarangal/gitlabhq,mmkassem/gitlabhq,folpindo/gitlabhq,dplarson/gitlabhq,Burick/gitlabhq,Burick/gitlabhq,wangcan2014/gitlabhq,sonalkr132/gitlabhq,since2014/gitlabhq,dvrylc/gitlabhq,kitech/gitlabhq,folpindo/gitlabhq,dukex/gitlabhq,darkrasid/gitlabhq,chenrui2014/gitlabhq,pulkit21/gitlabhq,zrbsprite/gitlabhq,darkrasid/gitlabhq,mrb/gitlabhq,kitech/gitlabhq,chadyred/gitlabhq,mmkassem/gitlabhq,fearenales/gitlabhq,mavimo/gitlabhq,axilleas/gitlabhq,TheWatcher/gitlabhq,martijnvermaat/gitlabhq,pjknkda/gitlabhq,nguyen-tien-mulodo/gitlabhq,fgbreel/gitlabhq,iiet/iiet-git,julianengel/gitlabhq,ikappas/gitlabhq,fgbreel/gitlabhq,LytayTOUCH/gitlabhq,ayufan/gitlabhq,dukex/gitlabhq,julianengel/gitlabhq,aaronsnyder/gitlabhq,cinderblock/gitlabhq,tempbottle/gitlabhq,luzhongyang/gitlabhq,johnmyqin/gitlabhq,liyakun/gitlabhq,gopeter/gitlabhq,chadyred/gitlabhq,LytayTOUCH/gitlabhq,dplarson/gitlabhq,ikappas/gitlabhq,lvfeng1130/gitlabhq,shinexiao/gitlabhq,daiyu/gitlab-zh,mr-dxdy/gitlabhq,yatish27/gitlabhq,fendoudeqingchunhh/gitlabhq,lvfeng1130/gitlabhq,yfaizal/gitlabhq,delkyd/gitlabhq,fpgentil/gitlabhq,duduribeiro/gitlabhq,szechyjs/gitlabhq,t-zuehlsdorff/gitlabhq,whluwit/gitlabhq,larryli/gitlabhq,sue445/gitlabhq,since2014/gitlabhq,cui-liqiang/gitlab-ce,gopeter/gitlabhq,pjknkda/gitlabhq,gopeter/gitlabhq,kemenaran/gitlabhq,jirutka/gitlabhq,icedwater/gitlabhq,Exeia/gitlabhq,per-garden/gitlabhq,koreamic/gitlabhq,mmkassem/gitlabhq,gorgee/gitlabhq,nguyen-tien-mulodo/gitlabhq,bozaro/gitlabhq,rhels/gitlabhq,rebecamendez/gitlabhq,MauriceMohlek/gitlabhq,aaronsnyder/gitlabhq,jaepyoung/gitlabhq,jirutka/gitlabhq,Telekom-PD/gitlabhq,luzhongyang/gitlabhq,theonlydoo/gitlabhq,mente/gitlabhq,hzy001/gitlabhq,allysonbarros/gitlabhq,allysonbarros/gitlabhq,delkyd/gitlabhq,axilleas/gitlabhq,youprofit/gitlabhq,eliasp/gitlabhq,htve/GitlabForChinese,sonalkr132/gitlabhq,ksoichiro/gitlabhq,cui-liqiang/gitlab-ce,dvrylc/gitlabhq,michaKFromParis/sparkslab,hq804116393/gitlabhq,gopeter/gitlabhq,H3Chief/gitlabhq,nmav/gitlabhq,zBMNForks/gitlabhq,mente/gitlabhq,TheWatcher/gitlabhq,joalmeid/gitlabhq,fendoudeqingchunhh/gitlabhq,axilleas/gitlabhq,Datacom/gitlabhq,WSDC-NITWarangal/gitlabhq,WSDC-NITWarangal/gitlabhq,dwrensha/gitlabhq,Telekom-PD/gitlabhq,rebecamendez/gitlabhq,jrjang/gitlabhq,htve/GitlabForChinese,OtkurBiz/gitlabhq,zrbsprite/gitlabhq,pjknkda/gitlabhq,rebecamendez/gitlabhq,salipro4ever/gitlabhq,bigsurge/gitlabhq,since2014/gitlabhq,NKMR6194/gitlabhq,rumpelsepp/gitlabhq,Tyrael/gitlabhq,Telekom-PD/gitlabhq,johnmyqin/gitlabhq,bbodenmiller/gitlabhq,Devin001/gitlabhq,rhels/gitlabhq,wangcan2014/gitlabhq,nmav/gitlabhq,ngpestelos/gitlabhq,chenrui2014/gitlabhq,yonglehou/gitlabhq,dukex/gitlabhq,joalmeid/gitlabhq,jvanbaarsen/gitlabhq,dwrensha/gitlabhq,louahola/gitlabhq,stoplightio/gitlabhq,mente/gitlabhq,SVArago/gitlabhq,stoplightio/gitlabhq,Razer6/gitlabhq,hacsoc/gitlabhq,ordiychen/gitlabhq,sue445/gitlabhq,yama07/gitlabhq,whluwit/gitlabhq,aaronsnyder/gitlabhq,johnmyqin/gitlabhq,LUMC/gitlabhq,jvanbaarsen/gitlabhq,t-zuehlsdorff/gitlabhq,OtkurBiz/gitlabhq,shinexiao/gitlabhq,sakishum/gitlabhq,sakishum/gitlabhq,iiet/iiet-git,salipro4ever/gitlabhq,ferdinandrosario/gitlabhq,larryli/gitlabhq,dreampet/gitlab,bozaro/gitlabhq,dvrylc/gitlabhq,manfer/gitlabhq,mrb/gitlabhq,MauriceMohlek/gitlabhq,initiummedia/gitlabhq,OlegGirko/gitlab-ce,larryli/gitlabhq,jaepyoung/gitlabhq,dukex/gitlabhq,Soullivaneuh/gitlabhq,ngpestelos/gitlabhq,fgbreel/gitlabhq,pulkit21/gitlabhq,rhels/gitlabhq,SVArago/gitlabhq,childbamboo/gitlabhq,per-garden/gitlabhq,ayufan/gitlabhq,tim-hoff/gitlabhq,Devin001/gitlabhq,larryli/gitlabhq,Soullivaneuh/gitlabhq,OlegGirko/gitlab-ce,lvfeng1130/gitlabhq,koreamic/gitlabhq,yama07/gitlabhq,OtkurBiz/gitlabhq,revaret/gitlabhq,fendoudeqingchunhh/gitlabhq,copystudy/gitlabhq,tempbottle/gitlabhq,martinma4/gitlabhq,gorgee/gitlabhq,sekcheong/gitlabhq,LUMC/gitlabhq,sonalkr132/gitlabhq,ikappas/gitlabhq,fscherwi/gitlabhq,yfaizal/gitlabhq,tk23/gitlabhq,chenrui2014/gitlabhq,axilleas/gitlabhq,k4zzk/gitlabhq,hacsoc/gitlabhq,t-zuehlsdorff/gitlabhq,zrbsprite/gitlabhq,michaKFromParis/gitlabhqold,zBMNForks/gitlabhq,H3Chief/gitlabhq,lvfeng1130/gitlabhq,stoplightio/gitlabhq,aaronsnyder/gitlabhq,jaepyoung/gitlabhq,sakishum/gitlabhq,bigsurge/gitlabhq,fearenales/gitlabhq,ayufan/gitlabhq,folpindo/gitlabhq,salipro4ever/gitlabhq,openwide-java/gitlabhq,htve/GitlabForChinese,szechyjs/gitlabhq,Telekom-PD/gitlabhq,delkyd/gitlabhq,sekcheong/gitlabhq,yama07/gitlabhq,fearenales/gitlabhq,Razer6/gitlabhq,mente/gitlabhq,fscherwi/gitlabhq,mavimo/gitlabhq,stanhu/gitlabhq,bbodenmiller/gitlabhq,bozaro/gitlabhq,johnmyqin/gitlabhq,iiet/iiet-git,michaKFromParis/sparkslab,NKMR6194/gitlabhq,wangcan2014/gitlabhq,wangcan2014/gitlabhq,williamherry/gitlabhq,yonglehou/gitlabhq,it33/gitlabhq,fscherwi/gitlabhq,copystudy/gitlabhq,hzy001/gitlabhq,joalmeid/gitlabhq,ttasanen/gitlabhq,michaKFromParis/gitlabhq,Exeia/gitlabhq,fendoudeqingchunhh/gitlabhq,ayufan/gitlabhq,szechyjs/gitlabhq,mrb/gitlabhq,Devin001/gitlabhq,fantasywind/gitlabhq,initiummedia/gitlabhq,allistera/gitlabhq,flashbuckets/gitlabhq,zrbsprite/gitlabhq,eliasp/gitlabhq,mr-dxdy/gitlabhq,shinexiao/gitlabhq,Devin001/gitlabhq,rumpelsepp/gitlabhq,sekcheong/gitlabhq,LytayTOUCH/gitlabhq,michaKFromParis/gitlabhqold,ordiychen/gitlabhq,stoplightio/gitlabhq,jrjang/gitlab-ce,salipro4ever/gitlabhq,pulkit21/gitlabhq,nmav/gitlabhq,martijnvermaat/gitlabhq,Tyrael/gitlabhq,julianengel/gitlabhq,ttasanen/gitlabhq,NKMR6194/gitlabhq,theodi/gitlabhq,OlegGirko/gitlab-ce,mr-dxdy/gitlabhq,theodi/gitlabhq,hq804116393/gitlabhq,Tyrael/gitlabhq,revaret/gitlabhq,openwide-java/gitlabhq,stanhu/gitlabhq,dwrensha/gitlabhq,screenpages/gitlabhq,theonlydoo/gitlabhq,ksoichiro/gitlabhq,whluwit/gitlabhq,cinderblock/gitlabhq,gorgee/gitlabhq,zBMNForks/gitlabhq,fantasywind/gitlabhq,ngpestelos/gitlabhq,jirutka/gitlabhq,ferdinandrosario/gitlabhq,cinderblock/gitlabhq,k4zzk/gitlabhq,tim-hoff/gitlabhq,ksoichiro/gitlabhq,dvrylc/gitlabhq,DanielZhangQingLong/gitlabhq,SVArago/gitlabhq,michaKFromParis/gitlabhq,michaKFromParis/gitlabhq,rebecamendez/gitlabhq,bigsurge/gitlabhq,jrjang/gitlabhq,fpgentil/gitlabhq,luzhongyang/gitlabhq,michaKFromParis/sparkslab,joalmeid/gitlabhq,screenpages/gitlabhq,theonlydoo/gitlabhq,darkrasid/gitlabhq,jrjang/gitlabhq,jvanbaarsen/gitlabhq,iiet/iiet-git,k4zzk/gitlabhq,Datacom/gitlabhq,hq804116393/gitlabhq,sonalkr132/gitlabhq,liyakun/gitlabhq,screenpages/gitlabhq,vjustov/gitlabhq,jrjang/gitlabhq,delkyd/gitlabhq,LUMC/gitlabhq,yatish27/gitlabhq,folpindo/gitlabhq,martinma4/gitlabhq,pjknkda/gitlabhq,yonglehou/gitlabhq,darkrasid/gitlabhq,yatish27/gitlabhq,tempbottle/gitlabhq,jaepyoung/gitlabhq,liyakun/gitlabhq,fscherwi/gitlabhq,flashbuckets/gitlabhq,bbodenmiller/gitlabhq,cui-liqiang/gitlab-ce,hzy001/gitlabhq,ngpestelos/gitlabhq,allysonbarros/gitlabhq,gorgee/gitlabhq,dplarson/gitlabhq,duduribeiro/gitlabhq,flashbuckets/gitlabhq,it33/gitlabhq,martinma4/gitlabhq,louahola/gitlabhq,openwide-java/gitlabhq,jrjang/gitlab-ce,Datacom/gitlabhq,sekcheong/gitlabhq,williamherry/gitlabhq,Soullivaneuh/gitlabhq,michaKFromParis/gitlabhq,initiummedia/gitlabhq,yama07/gitlabhq,williamherry/gitlabhq,vjustov/gitlabhq,martijnvermaat/gitlabhq,WSDC-NITWarangal/gitlabhq,bozaro/gitlabhq,tim-hoff/gitlabhq,michaKFromParis/sparkslab,Datacom/gitlabhq,zBMNForks/gitlabhq,icedwater/gitlabhq,k4zzk/gitlabhq,icedwater/gitlabhq,theodi/gitlabhq,hacsoc/gitlabhq,Razer6/gitlabhq,chenrui2014/gitlabhq,sue445/gitlabhq,t-zuehlsdorff/gitlabhq,LUMC/gitlabhq,tk23/gitlabhq,Razer6/gitlabhq,louahola/gitlabhq,louahola/gitlabhq,youprofit/gitlabhq,duduribeiro/gitlabhq,manfer/gitlabhq,dplarson/gitlabhq,MauriceMohlek/gitlabhq,tk23/gitlabhq,Soullivaneuh/gitlabhq,szechyjs/gitlabhq,DanielZhangQingLong/gitlabhq,nguyen-tien-mulodo/gitlabhq,since2014/gitlabhq,cui-liqiang/gitlab-ce,mavimo/gitlabhq,daiyu/gitlab-zh,yfaizal/gitlabhq,childbamboo/gitlabhq,flashbuckets/gitlabhq,Exeia/gitlabhq,initiummedia/gitlabhq,ttasanen/gitlabhq,hq804116393/gitlabhq,it33/gitlabhq,martinma4/gitlabhq,shinexiao/gitlabhq,allistera/gitlabhq,bbodenmiller/gitlabhq,rumpelsepp/gitlabhq,rumpelsepp/gitlabhq,revaret/gitlabhq,kemenaran/gitlabhq,kitech/gitlabhq,mrb/gitlabhq,daiyu/gitlab-zh,ferdinandrosario/gitlabhq,mr-dxdy/gitlabhq,yfaizal/gitlabhq,theonlydoo/gitlabhq,stanhu/gitlabhq,dreampet/gitlab,mmkassem/gitlabhq,yonglehou/gitlabhq,jvanbaarsen/gitlabhq,daiyu/gitlab-zh,bigsurge/gitlabhq,nguyen-tien-mulodo/gitlabhq,luzhongyang/gitlabhq,Burick/gitlabhq,per-garden/gitlabhq