check for nil when authorizing doc
check for nil when authorizing doc

Apipie/apipie-rails,TwilightCoders/apipie-rails,edwardjewson/apipie-rails,TwilightCoders/apipie-rails,ifeelgoods/apipie-rails,johnnaegle/apipie-rails,edwardjewson/apipie-rails,ifeelgoods/apipie-rails,johnnaegle/apipie-rails,Apipie/apipie-rails,Apipie/apipie-rails,johnnaegle/apipie-rails,edwardjewson/apipie-rails,ifeelgoods/apipie-rails,TwilightCoders/apipie-rails