Replaced obsolete ActionController::UnknownAction.new with ::AbstractController::ActionNotFound.new. Added access_denied method that overrides the access_denied from oauth-plugin to redirect to login page.