Cleanup oauth2 file and make it work with doorkeeper ~> 1.4

This is the line changed to make it work with doorkeeper 1.4.