From 538cecd5df5fffdca9bbd933fc9ff9ef077fe055 Mon Sep 17 00:00:00 2001
From: Andrew Hooker
Date: Thu, 20 Aug 2015 09:09:25 -0500
Subject: [PATCH] Check count, not merely presence of `scopes`
---
app/views/doorkeeper/authorizations/new.html.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/doorkeeper/authorizations/new.html.erb b/app/views/doorkeeper/authorizations/new.html.erb
index 5bea2ec56..c6f738b33 100644
--- a/app/views/doorkeeper/authorizations/new.html.erb
+++ b/app/views/doorkeeper/authorizations/new.html.erb
@@ -7,7 +7,7 @@
<%= raw t('.prompt', client_name: "#{ @pre_auth.client.name }") %>
- <% if @pre_auth.scopes %>
+ <% if @pre_auth.scopes.count > 0 %>