500 error when trying to delete an application from Oauth
Created by: Eijebong
Last master revision.
Started GET "/admin/applications" for 127.0.0.1 at 2015-01-21 19:27:26 +0100
Processing by Admin::ApplicationsController#index as HTML
Completed 200 OK in 35ms (Views: 24.9ms | ActiveRecord: 4.0ms)
Started DELETE "/admin/applications/2" for 127.0.0.1 at 2015-01-21 19:27:29 +0100
Processing by Admin::ApplicationsController#destroy as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"blabla", "id"=>"2"}
Completed 500 Internal Server Error in 38ms
NoMethodError (undefined method `name' for nil:NilClass): app/controllers/admin/applications_controller.rb:38:in `destroy'