add handling exception for CanCan and TypeAd model