diff options
author | Vinnie Okada <vokada@mrvinn.com> | 2015-02-16 01:43:18 +0300 |
---|---|---|
committer | Vinnie Okada <vokada@mrvinn.com> | 2015-02-16 01:53:33 +0300 |
commit | 9e0467c38efb1a279b87cf17df5fb1b9b85aa0fe (patch) | |
tree | acb1591fd25f14c4507245acbfdbba45e1ebe735 /app | |
parent | 020ec31eb5f09380e8cdcc877ffbdf27b0afb2d7 (diff) |
Fix application client count
Display the number of unique users with an access token instead of the
total number of access tokens per application in the admin area.
Diffstat (limited to 'app')
-rw-r--r-- | app/views/admin/applications/index.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/admin/applications/index.html.haml b/app/views/admin/applications/index.html.haml index f2fed51eaf8..0632888dc82 100644 --- a/app/views/admin/applications/index.html.haml +++ b/app/views/admin/applications/index.html.haml @@ -17,6 +17,6 @@ %tr{:id => "application_#{application.id}"} %td= link_to application.name, admin_application_path(application) %td= application.redirect_uri - %td= application.access_tokens.count + %td= application.access_tokens.map { |t| t.resource_owner_id }.uniq.count %td= link_to 'Edit', edit_admin_application_path(application), class: 'btn btn-link' %td= render 'delete_form', application: application |