https://github.com/doorkeeper-gem/doorkeeper/commit/c1b5c45e...
https://github.com/doorkeeper-gem/doorkeeper/issues/524