Move authorize method to trails helper