Use `#has_attribute?` as suggested by deprecation warning
Use `#has_attribute?` as suggested by deprecation warning

The `#is_boolean?` implementation calls `#type_for_attribute` or
`#column_for_attribute` depending on the Rails version. However,
`#type_for_attribute` returns an instance of `ActiveRecord::Type::Value`
with a null `#type`, which makes the `#status_tag` tests fail.

Trying to change it back to `#column_for_attribute` results in the
following deprecation warning:

    DEPRECATION WARNING: `#column_for_attribute` will return a null
    object for non-existent columns in Rails 5. Use `#has_attribute?` if
    you need to check for an attribute's existence.

This commit follows this suggestion and uses `#has_attribute?` before
accessing the column information with `#column_for_attribute`, which
should be compatible with all major Rails versions supported.

The deprecation warning will still be there, but the null check is in
place as well.

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