Make User#accessible_deploy_keys works in rails4
Make User#accessible_deploy_keys works in rails4

Signed-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>

jaepyoung/gitlabhq,mmkassem/gitlabhq,ibiart/gitlabhq,bigsurge/gitlabhq,lvfeng1130/gitlabhq,pkgr/gitlabhq,pkallberg/tjenare,ferdinandrosario/gitlabhq,DanielZhangQingLong/gitlabhq,hacsoc/gitlabhq,yama07/gitlabhq,ZeoAlliance/gitlabhq,michaKFromParis/sparkslab,OtkurBiz/gitlabhq,theodi/gitlabhq,allistera/gitlabhq,yuyue2013/ss,fendoudeqingchunhh/gitlabhq,shinexiao/gitlabhq,kemenaran/gitlabhq,copystudy/gitlabhq,per-garden/gitlabhq,hq804116393/gitlabhq,Telekom-PD/gitlabhq,H3Chief/gitlabhq,fgbreel/gitlabhq,louahola/gitlabhq,NuLL3rr0r/gitlabhq,Devin001/gitlabhq,liyakun/gitlabhq,fendoudeqingchunhh/gitlabhq,cncodog/gitlab,koreamic/gitlabhq,yonglehou/gitlabhq,jirutka/gitlabhq,theonlydoo/gitlabhq,adaiguoguo/gitlab_globalserarch,vjustov/gitlabhq,cui-liqiang/gitlab-ce,dplarson/gitlabhq,Kambda/mobbr-gitlabhq,dreampet/gitlab,DanielZhangQingLong/gitlabhq,jairzh/gitlabhq-sfdc,rhels/gitlabhq,julianengel/gitlabhq,ayufan/gitlabhq,martinma4/gitlabhq,liyakun/gitlabhq,larryli/gitlabhq,hacsoc/gitlabhq,axilleas/gitlabhq,daiyu/gitlab-zh,fantasywind/gitlabhq,LUMC/gitlabhq,Datacom/gitlabhq,mente/gitlabhq,joalmeid/gitlabhq,pulkit21/gitlabhq,yonglehou/gitlabhq,bladealslayer/gitlabhq,ikappas/gitlabhq,fgbreel/gitlabhq,initiummedia/gitlabhq,fendoudeqingchunhh/gitlabhq,LUMC/gitlabhq,123Haynes/gitlabhq,WSDC-NITWarangal/gitlabhq,johnmyqin/gitlabhq,kemenaran/gitlabhq,screenpages/gitlabhq,aaronsnyder/gitlabhq,Razer6/gitlabhq,szechyjs/gitlabhq,fantasywind/gitlabhq,yfaizal/gitlabhq,luzhongyang/gitlabhq,revaret/gitlabhq,yfaizal/gitlabhq,yonglehou/gitlabhq,julianengel/gitlabhq,iiet/iiet-git,hq804116393/gitlabhq,Keystion/gitlabhq,flashbuckets/gitlabhq,wangcan2014/gitlabhq,shinexiao/gitlabhq,bozaro/gitlabhq,hzy001/gitlabhq,mmkassem/gitlabhq,8thcolor/testing-public-gitlabhq,manfer/gitlabhq,htve/GitlabForChinese,fscherwi/gitlabhq,rumpelsepp/gitlabhq,bozaro/gitlabhq,htve/GitlabForChinese,ordiychen/gitlabhq,chadyred/gitlabhq,pkallberg/tjenare,adaiguoguo/gitlab_globalserarch,SkyWei/gitlabhq,rhels/gitlabhq,tk23/gitlabhq,TheWatcher/gitlabhq,Keystion/gitlabhq,nmav/gitlabhq,Razer6/gitlabhq,hq804116393/gitlabhq,jvanbaarsen/gitlabhq,yatish27/gitlabhq,atomaka/gitlabhq,mente/gitlabhq,fscherwi/gitlabhq,Devin001/gitlabhq,szechyjs/gitlabhq,ksoichiro/gitlabhq,it33/gitlabhq,cncodog/gitlab,initiummedia/gitlabhq,akumetsuv/gitlab,per-garden/gitlabhq,k4zzk/gitlabhq,delkyd/gitlabhq,openwide-java/gitlabhq,ayufan/gitlabhq,gopeter/gitlabhq,manfer/gitlabhq,allysonbarros/gitlabhq,fpgentil/gitlabhq,darkrasid/gitlabhq,fscherwi/gitlabhq,yama07/gitlabhq,stoplightio/gitlabhq,youprofit/gitlabhq,childbamboo/gitlabhq,OtkurBiz/gitlabhq,salipro4ever/gitlabhq,ngpestelos/gitlabhq,ordiychen/gitlabhq,tim-hoff/gitlabhq,axilleas/gitlabhq,Burick/gitlabhq,stanhu/gitlabhq,louahola/gitlabhq,Burick/gitlabhq,bigsurge/gitlabhq,Tyrael/gitlabhq,atomaka/gitlabhq,jvanbaarsen/gitlabhq,per-garden/gitlabhq,yulchitaj/TEST3,dplarson/gitlabhq,screenpages/gitlabhq,michaKFromParis/sparkslab,michaKFromParis/gitlabhq,bbodenmiller/gitlabhq,rfeese/gitlab-ce,luzhongyang/gitlabhq,H3Chief/gitlabhq,jirutka/gitlabhq,initiummedia/gitlabhq,openwide-java/gitlabhq,icedwater/gitlabhq,dreampet/gitlab,dwrensha/gitlabhq,lvfeng1130/gitlabhq,shinexiao/gitlabhq,Datacom/gitlabhq,H3Chief/gitlabhq,michaKFromParis/gitlabhqold,zBMNForks/gitlabhq,sekcheong/gitlabhq,OtkurBiz/gitlabhq,chenrui2014/gitlabhq,rebecamendez/gitlabhq,larryli/gitlabhq,williamherry/gitlabhq,theodi/gitlabhq,bbodenmiller/gitlabhq,mrb/gitlabhq,gorgee/gitlabhq,LUMC/gitlabhq,ordiychen/gitlabhq,SVArago/gitlabhq,yfaizal/gitlabhq,ZeoAlliance/gitlabhq,rfeese/gitlab-ce,ikappas/gitlabhq,salipro4ever/gitlabhq,ikappas/gitlabhq,nguyen-tien-mulodo/gitlabhq,fpgentil/gitlabhq,aaronsnyder/gitlabhq,nguyen-tien-mulodo/gitlabhq,darkrasid/gitlabhq,tk23/gitlabhq,screenpages/gitlabhq,michaKFromParis/gitlabhq,pjknkda/gitlabhq,fpgentil/gitlabhq,windymid/test2,ngpestelos/gitlabhq,k4zzk/gitlabhq,whluwit/gitlabhq,Kambda/Mobbr,SkyWei/gitlabhq,NuLL3rr0r/gitlabhq,delkyd/gitlabhq,cui-liqiang/gitlab-ce,hzy001/gitlabhq,sonalkr132/gitlabhq,youprofit/gitlabhq,nmav/gitlabhq,LytayTOUCH/gitlabhq,pkallberg/tjenare,pjknkda/gitlabhq,tk23/gitlabhq,stellamiranda/mobbr-gitlabhq,daiyu/gitlab-zh,sekcheong/gitlabhq,wangcan2014/gitlabhq,H3Chief/gitlabhq,chadyred/gitlabhq,NARKOZ/gitlabhq,MauriceMohlek/gitlabhq,sue445/gitlabhq,fearenales/gitlabhq,zBMNForks/gitlabhq,nmav/gitlabhq,DanielZhangQingLong/gitlabhq,ferdinandrosario/gitlabhq,jrjang/gitlabhq,8thcolor/testing-public-gitlabhq,jairzh/gitlabhq-sfdc,akumetsuv/gitlab,SVArago/gitlabhq,liyakun/gitlabhq,ksoichiro/gitlabhq,dwrensha/gitlabhq,cinderblock/gitlabhq,kemenaran/gitlabhq,mmkassem/gitlabhq,NARKOZ/gitlabhq,kotaro-dev/gitlab-6-9,t-zuehlsdorff/gitlabhq,DanielZhangQingLong/gitlabhq,michaKFromParis/gitlabhqold,fearenales/gitlabhq,dplarson/gitlabhq,stoplightio/gitlabhq,fearenales/gitlabhq,chenrui2014/gitlabhq,luzhongyang/gitlabhq,dwrensha/gitlabhq,martinma4/gitlabhq,Devin001/gitlabhq,MauriceMohlek/gitlabhq,Exeia/gitlabhq,sideci-sample/sideci-sample-gitlabhq,duduribeiro/gitlabhq,Soullivaneuh/gitlabhq,sideci-sample/sideci-sample-gitlabhq,mavimo/gitlabhq,folpindo/gitlabhq,xuvw/gitlabhq,michaKFromParis/sparkslab,mente/gitlabhq,gopeter/gitlabhq,fgbreel/gitlabhq,childbamboo/gitlabhq,Exeia/gitlabhq,sakishum/gitlabhq,sakishum/gitlabhq,johnmyqin/gitlabhq,TheWatcher/gitlabhq,dwrensha/gitlabhq,hacsoc/gitlabhq,yuyue2013/ss,pjknkda/gitlabhq,k4zzk/gitlabhq,koreamic/gitlabhq,allistera/gitlabhq,iiet/iiet-git,123Haynes/gitlabhq,hzy001/gitlabhq,Soullivaneuh/gitlabhq,jrjang/gitlab-ce,pulkit21/gitlabhq,ttasanen/gitlabhq,fgbreel/gitlabhq,vjustov/gitlabhq,whluwit/gitlabhq,mathstuf/gitlabhq,yulchitaj/TEST3,yatish27/gitlabhq,ferdinandrosario/gitlabhq,jaepyoung/gitlabhq,xuvw/gitlabhq,koreamic/gitlabhq,bladealslayer/gitlabhq,gopeter/gitlabhq,williamherry/gitlabhq,SVArago/gitlabhq,cncodog/gitlab,theonlydoo/gitlabhq,duduribeiro/gitlabhq,vjustov/gitlabhq,sakishum/gitlabhq,ksoichiro/gitlabhq,jrjang/gitlab-ce,tim-hoff/gitlabhq,allistera/gitlabhq,yfaizal/gitlabhq,Exeia/gitlabhq,ayufan/gitlabhq,bozaro/gitlabhq,gorgee/gitlabhq,sue445/gitlabhq,eliasp/gitlabhq,martinma4/gitlabhq,mente/gitlabhq,mr-dxdy/gitlabhq,phinfonet/mobbr-gitlabhq,liyakun/gitlabhq,tempbottle/gitlabhq,axilleas/gitlabhq,stanhu/gitlabhq,rfeese/gitlab-ce,since2014/gitlabhq,vjustov/gitlabhq,yama07/gitlabhq,k4zzk/gitlabhq,adaiguoguo/gitlab_globalserarch,Devin001/gitlabhq,rumpelsepp/gitlabhq,Soullivaneuh/gitlabhq,Telekom-PD/gitlabhq,ngpestelos/gitlabhq,cui-liqiang/gitlab-ce,Burick/gitlabhq,tim-hoff/gitlabhq,chenrui2014/gitlabhq,whluwit/gitlabhq,jrjang/gitlabhq,duduribeiro/gitlabhq,childbamboo/gitlabhq,stoplightio/gitlabhq,johnmyqin/gitlabhq,Telekom-PD/gitlabhq,copystudy/gitlabhq,mathstuf/gitlabhq,WSDC-NITWarangal/gitlabhq,michaKFromParis/gitlabhqold,Kambda/mobbr-gitlabhq,aaronsnyder/gitlabhq,yuyue2013/ss,chadyred/gitlabhq,NARKOZ/gitlabhq,copystudy/gitlabhq,ZeoAlliance/gitlabhq,julianengel/gitlabhq,NARKOZ/gitlabhq,screenpages/gitlabhq,hzy001/gitlabhq,yama07/gitlabhq,Tyrael/gitlabhq,Datacom/gitlabhq,icedwater/gitlabhq,NKMR6194/gitlabhq,jirutka/gitlabhq,kitech/gitlabhq,pulkit21/gitlabhq,LytayTOUCH/gitlabhq,kitech/gitlabhq,eliasp/gitlabhq,htve/GitlabForChinese,youprofit/gitlabhq,allysonbarros/gitlabhq,chadyred/gitlabhq,sekcheong/gitlabhq,openwide-java/gitlabhq,salipro4ever/gitlabhq,dvrylc/gitlabhq,stanhu/gitlabhq,rhels/gitlabhq,mmkassem/gitlabhq,childbamboo/gitlabhq,zrbsprite/gitlabhq,Kambda/mobbr-gitlabhq,WSDC-NITWarangal/gitlabhq,fearenales/gitlabhq,larryli/gitlabhq,bbodenmiller/gitlabhq,per-garden/gitlabhq,mavimo/gitlabhq,mathstuf/gitlabhq,daiyu/gitlab-zh,OlegGirko/gitlab-ce,zrbsprite/gitlabhq,theodi/gitlabhq,lvfeng1130/gitlabhq,stoplightio/gitlabhq,revaret/gitlabhq,aaronsnyder/gitlabhq,cui-liqiang/gitlab-ce,zrbsprite/gitlabhq,theonlydoo/gitlabhq,dukex/gitlabhq,dvrylc/gitlabhq,bladealslayer/gitlabhq,koreamic/gitlabhq,atomaka/gitlabhq,mrb/gitlabhq,it33/gitlabhq,kemenaran/gitlabhq,lvfeng1130/gitlabhq,MauriceMohlek/gitlabhq,dukex/gitlabhq,delkyd/gitlabhq,yuyue2013/ss,folpindo/gitlabhq,NKMR6194/gitlabhq,rfeese/gitlab-ce,tim-hoff/gitlabhq,folpindo/gitlabhq,wangcan2014/gitlabhq,sue445/gitlabhq,xuvw/gitlabhq,flashbuckets/gitlabhq,flashbuckets/gitlabhq,darkrasid/gitlabhq,youprofit/gitlabhq,LytayTOUCH/gitlabhq,ayufan/gitlabhq,folpindo/gitlabhq,icedwater/gitlabhq,yonglehou/gitlabhq,jrjang/gitlabhq,jirutka/gitlabhq,Tyrael/gitlabhq,dukex/gitlabhq,flashbuckets/gitlabhq,szechyjs/gitlabhq,revaret/gitlabhq,mr-dxdy/gitlabhq,luzhongyang/gitlabhq,t-zuehlsdorff/gitlabhq,bbodenmiller/gitlabhq,yatish27/gitlabhq,mrb/gitlabhq,gorgee/gitlabhq,since2014/gitlabhq,copystudy/gitlabhq,mavimo/gitlabhq,pkgr/gitlabhq,ordiychen/gitlabhq,rumpelsepp/gitlabhq,LytayTOUCH/gitlabhq,adaiguoguo/gitlab_globalserarch,allysonbarros/gitlabhq,nmav/gitlabhq,kitech/gitlabhq,michaKFromParis/gitlabhq,TheWatcher/gitlabhq,whluwit/gitlabhq,cinderblock/gitlabhq,pkgr/gitlabhq,ttasanen/gitlabhq,ibiart/gitlabhq,shinexiao/gitlabhq,szechyjs/gitlabhq,manfer/gitlabhq,WSDC-NITWarangal/gitlabhq,ikappas/gitlabhq,OlegGirko/gitlab-ce,t-zuehlsdorff/gitlabhq,dreampet/gitlab,tempbottle/gitlabhq,MauriceMohlek/gitlabhq,SVArago/gitlabhq,pulkit21/gitlabhq,theonlydoo/gitlabhq,Keystion/gitlabhq,it33/gitlabhq,jrjang/gitlab-ce,fantasywind/gitlabhq,michaKFromParis/gitlabhq,sonalkr132/gitlabhq,joalmeid/gitlabhq,Kambda/Mobbr,cinderblock/gitlabhq,mrb/gitlabhq,stellamiranda/mobbr-gitlabhq,tempbottle/gitlabhq,NuLL3rr0r/gitlabhq,NKMR6194/gitlabhq,Razer6/gitlabhq,joalmeid/gitlabhq,bozaro/gitlabhq,OtkurBiz/gitlabhq,zBMNForks/gitlabhq,gopeter/gitlabhq,salipro4ever/gitlabhq,martijnvermaat/gitlabhq,jaepyoung/gitlabhq,ttasanen/gitlabhq,stellamiranda/mobbr-gitlabhq,martijnvermaat/gitlabhq,rebecamendez/gitlabhq,LUMC/gitlabhq,pjknkda/gitlabhq,akumetsuv/gitlab,windymid/test2,iiet/iiet-git,Exeia/gitlabhq,eliasp/gitlabhq,mavimo/gitlabhq,OlegGirko/gitlab-ce,it33/gitlabhq,jvanbaarsen/gitlabhq,nguyen-tien-mulodo/gitlabhq,allistera/gitlabhq,delkyd/gitlabhq,cinderblock/gitlabhq,OlegGirko/gitlab-ce,ferdinandrosario/gitlabhq,rumpelsepp/gitlabhq,larryli/gitlabhq,zrbsprite/gitlabhq,fantasywind/gitlabhq,Keystion/gitlabhq,phinfonet/mobbr-gitlabhq,jairzh/gitlabhq-sfdc,theodi/gitlabhq,SkyWei/gitlabhq,Kambda/Mobbr,yatish27/gitlabhq,allysonbarros/gitlabhq,bigsurge/gitlabhq,8thcolor/testing-public-gitlabhq,jrjang/gitlab-ce,julianengel/gitlabhq,louahola/gitlabhq,gorgee/gitlabhq,cncodog/gitlab,yulchitaj/TEST3,jairzh/gitlabhq-sfdc,michaKFromParis/gitlabhqold,zBMNForks/gitlabhq,duduribeiro/gitlabhq,eliasp/gitlabhq,Razer6/gitlabhq,bigsurge/gitlabhq,rhels/gitlabhq,kotaro-dev/gitlab-6-9,Tyrael/gitlabhq,ttasanen/gitlabhq,mathstuf/gitlabhq,iiet/iiet-git,martijnvermaat/gitlabhq,TheWatcher/gitlabhq,ibiart/gitlabhq,windymid/test2,martijnvermaat/gitlabhq,joalmeid/gitlabhq,rebecamendez/gitlabhq,sue445/gitlabhq,since2014/gitlabhq,dvrylc/gitlabhq,darkrasid/gitlabhq,michaKFromParis/sparkslab,rebecamendez/gitlabhq,icedwater/gitlabhq,sonalkr132/gitlabhq,dvrylc/gitlabhq,initiummedia/gitlabhq,sakishum/gitlabhq,ksoichiro/gitlabhq,daiyu/gitlab-zh,NKMR6194/gitlabhq,since2014/gitlabhq,123Haynes/gitlabhq,fendoudeqingchunhh/gitlabhq,williamherry/gitlabhq,johnmyqin/gitlabhq,dreampet/gitlab,Burick/gitlabhq,mr-dxdy/gitlabhq,kitech/gitlabhq,mr-dxdy/gitlabhq,Soullivaneuh/gitlabhq,williamherry/gitlabhq,phinfonet/mobbr-gitlabhq,manfer/gitlabhq,louahola/gitlabhq,yulchitaj/TEST3,jaepyoung/gitlabhq,wangcan2014/gitlabhq,openwide-java/gitlabhq,martinma4/gitlabhq,sekcheong/gitlabhq,chenrui2014/gitlabhq,Telekom-PD/gitlabhq,revaret/gitlabhq,dplarson/gitlabhq,SkyWei/gitlabhq,kotaro-dev/gitlab-6-9,hacsoc/gitlabhq,tempbottle/gitlabhq,axilleas/gitlabhq,nguyen-tien-mulodo/gitlabhq,sonalkr132/gitlabhq,fscherwi/gitlabhq,dukex/gitlabhq,jrjang/gitlabhq,Datacom/gitlabhq,sideci-sample/sideci-sample-gitlabhq,hq804116393/gitlabhq,t-zuehlsdorff/gitlabhq,jvanbaarsen/gitlabhq,htve/GitlabForChinese,tk23/gitlabhq,ngpestelos/gitlabhq,fpgentil/gitlabhq,stanhu/gitlabhq