should call resource_name and not use @resource_name directly
should call resource_name and not use @resource_name directly

Bugfix for pull request #337

strivedi183/activeadmin,mateusg/active_admin,iuriandreazza/activeadmin,seanski/activeadmin,Ryohu/activeadmin,ishumilova/activeadmin,maysam/activeadmin,rubixware/activeadmin,artofhuman/activeadmin,sharma1nitish/activeadmin,senid231/activeadmin,presskey/activeadmin,davydovanton/activeadmin,MohamedHegab/activeadmin,activeadmin/activeadmin,hyperoslo/activeadmin,sanyaade-iot/activeadmin,iuriandreazza/activeadmin,activeadmin/activeadmin,zfben/activeadmin,presskey/activeadmin,mynksngh/activeadmin,vytenis-s/activeadmin,cmunozgar/activeadmin,mauriciopasquier/active_admin,bcavileer/activeadmin,ampinog/activeadmin,deivid-rodriguez/activeadmin,dannyshafer/activeadmin,zfben/activeadmin,mynksngh/activeadmin,bolshakov/activeadmin,MohamedHegab/activeadmin,cmunozgar/activeadmin,applexiaohao/activeadmin,JeffreyATW/activeadmin,yijiasu/activeadmin,maysam/activeadmin,dalegregory/activeadmin,lampo/activeadmin,rtrepo/activeadmin,mwlang/active_admin,javierjulio/activeadmin,beyondthestory/activeadmin,mediebruket/activeadmin,yeti-switch/active_admin,yeti-switch/active_admin,Andrekra/activeadmin,varyonic/activeadmin,wspurgin/activeadmin,h2ocube/active_admin,saiqulhaq/activeadmin,totzyuta/activeadmin,thomascarterx/activeadmin,mrjman/activeadmin,artofhuman/activeadmin,chrisseldo/activeadmin,chdem/activeadmin,alonerage/activeadmin,ishumilova/activeadmin,ishumilova/activeadmin,Pollywog23/activeadmin,mohitnatoo/activeadmin,SoftSwiss/active_admin,Some1Else/activeadmin,FundingGates/activeadmin,deivid-rodriguez/activeadmin,saveav/activeadmin,bloomrain/activeadmin,hyperoslo/activeadmin,mateusg/active_admin,rubixware/activeadmin,Skulli/activeadmin,krautcomputing/activeadmin,chdem/activeadmin,jethroo/activeadmin,hiroponz/activeadmin,bcavileer/activeadmin,vraravam/activeadmin,samvincent/active_admin,thomascarterx/activeadmin,chdem/activeadmin,scarver2/activeadmin,westonplatter/activeadmin,Pollywog23/activeadmin,activeadmin/activeadmin,mohitnatoo/activeadmin,Some1Else/activeadmin,tf/activeadmin,davydovanton/activeadmin,getkiwicom/activeadmin,siutin/activeadmin,Ryohu/activeadmin,jethroo/activeadmin,iuriandreazza/activeadmin,wspurgin/activeadmin,bolshakov/activeadmin,halilim/activeadmin,dannyshafer/activeadmin,applexiaohao/activeadmin,gogovan/activeadmin,strivedi183/activeadmin,vraravam/activeadmin,whatcould/active_admin,MohamedHegab/activeadmin,gogovan/activeadmin,hyperoslo/activeadmin,shishir127/activeadmin,Amandeepsinghghai/activeadmin,sanyaade-iot/activeadmin,jclay/active_admin,mynksngh/activeadmin,dhartoto/activeadmin,getkiwicom/activeadmin,JeffreyATW/activeadmin,iuriandreazza/activeadmin,mauriciopasquier/active_admin,shishir127/activeadmin,Andrekra/activeadmin,zfben/activeadmin,beyondthestory/activeadmin,mediebruket/activeadmin,danielevans/activeadmin,deivid-rodriguez/activeadmin,Amandeepsinghghai/activeadmin,scarver2/activeadmin,lampo/activeadmin,temochka-test/activeadmin,wspurgin/activeadmin,samvincent/active_admin,lampo/activeadmin,saiqulhaq/activeadmin,getkiwicom/activeadmin,chrisseldo/activeadmin,tf/activeadmin,iuriandreazza/activeadmin,beyondthestory/activeadmin,Ibotta/activeadmin,h2ocube/active_admin,strivedi183/activeadmin,rtrepo/activeadmin,whatcould/active_admin,artofhuman/activeadmin,hobbes37/activeadmin,chrisseldo/activeadmin,dhartoto/activeadmin,jclay/active_admin,h2ocube/active_admin,bolshakov/activeadmin,thomascarterx/activeadmin,bcavileer/activeadmin,mwlang/active_admin,alonerage/activeadmin,FundingGates/activeadmin,Pollywog23/activeadmin,temochka-test/activeadmin,Skulli/activeadmin,quikly/active_admin,tjgrathwell/activeadmin,mauriciopasquier/active_admin,timoschilling/activeadmin,westonplatter/activeadmin,temochka-test/activeadmin,krautcomputing/activeadmin,varyonic/activeadmin,tjgrathwell/activeadmin,applexiaohao/activeadmin,adibsaad/activeadmin,iuriandreazza/activeadmin,sharma1nitish/activeadmin,mateusg/active_admin,bloomrain/activeadmin,saiqulhaq/activeadmin,dhartoto/activeadmin,yijiasu/activeadmin,keichan34/active_admin,javierjulio/activeadmin,totzyuta/activeadmin,hobbes37/activeadmin,FundingGates/activeadmin,hiroponz/activeadmin,SoftSwiss/active_admin,shishir127/activeadmin,iguchi1124/activeadmin,yeti-switch/active_admin,waymondo/active_admin,Ibotta/activeadmin,saveav/activeadmin,saveav/activeadmin,Davidzhu001/activeadmin,Davidzhu001/activeadmin,dalegregory/activeadmin,cmunozgar/activeadmin,iguchi1124/activeadmin,ampinog/activeadmin,Ryohu/activeadmin,dannyshafer/activeadmin,sharma1nitish/activeadmin,seanski/activeadmin,hiroponz/activeadmin,jclay/active_admin,tjgrathwell/activeadmin,iuriandreazza/activeadmin,SoftSwiss/active_admin,halilim/activeadmin,Ibotta/activeadmin,timoschilling/activeadmin,keichan34/active_admin,waymondo/active_admin,vytenis-s/activeadmin,waymondo/active_admin,davydovanton/activeadmin,jethroo/activeadmin,adibsaad/activeadmin,rubixware/activeadmin,scarver2/activeadmin,danielevans/activeadmin,Amandeepsinghghai/activeadmin,adibsaad/activeadmin,varyonic/activeadmin,mediebruket/activeadmin,vraravam/activeadmin,timoschilling/activeadmin,rtrepo/activeadmin,krautcomputing/activeadmin,siutin/activeadmin,Davidzhu001/activeadmin,Some1Else/activeadmin,keichan34/active_admin,samvincent/active_admin,iguchi1124/activeadmin,mohitnatoo/activeadmin,westonplatter/activeadmin,alonerage/activeadmin,sanyaade-iot/activeadmin,gogovan/activeadmin,Skulli/activeadmin,bloomrain/activeadmin,Andrekra/activeadmin,tf/activeadmin,mrjman/activeadmin,hobbes37/activeadmin,halilim/activeadmin,mrjman/activeadmin,quikly/active_admin,totzyuta/activeadmin,JeffreyATW/activeadmin,presskey/activeadmin,danielevans/activeadmin,ampinog/activeadmin,siutin/activeadmin,maysam/activeadmin,seanski/activeadmin,whatcould/active_admin,quikly/active_admin,javierjulio/activeadmin,dalegregory/activeadmin,buren/activeadmin,buren/activeadmin,vytenis-s/activeadmin,buren/activeadmin,mwlang/active_admin,senid231/activeadmin,senid231/activeadmin,yijiasu/activeadmin