From 8acf531e508acf737584e46ecd95a03dad3752d2 Mon Sep 17 00:00:00 2001
From: Ayla Orucevic <53306868+xaylax@users.noreply.github.com>
Date: Fri, 9 Oct 2020 23:33:41 -0400
Subject: [PATCH 1/2] Replace .length with .size
---
app/views/admin/useremail.html.erb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/views/admin/useremail.html.erb b/app/views/admin/useremail.html.erb
index 009f5fc7a6..57c9f561bf 100644
--- a/app/views/admin/useremail.html.erb
+++ b/app/views/admin/useremail.html.erb
@@ -18,8 +18,8 @@
<% if @address %>
-
Searched for <%= @address %>(<%= @users.length %>)
- <% if @users.length > 0 %>
+ Searched for <%= @address %>(<%= @users.size %>)
+ <% if @users.size > 0 %>
<% @users.each do |user| %>
- <%= user.username %>
From fecaac22960c604ecb47783970f41bde8dd21002 Mon Sep 17 00:00:00 2001
From: Ayla Orucevic <53306868+xaylax@users.noreply.github.com>
Date: Fri, 9 Oct 2020 23:34:59 -0400
Subject: [PATCH 2/2] Replace .count with .size
---
app/views/admin/users.html.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/admin/users.html.erb b/app/views/admin/users.html.erb
index cc60687836..b83906692c 100644
--- a/app/views/admin/users.html.erb
+++ b/app/views/admin/users.html.erb
@@ -17,7 +17,7 @@
<% @users.each do |user| %>
<%= user.name %> |
- <%= Node.where(uid: user.id).count %> |
+ <%= Node.where(uid: user.id).size %> |
<%= time_ago_in_words(user.created_at) %> |
<%= user.mail %> |
|