We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bd392f commit e44f015Copy full SHA for e44f015
app/models/user.rb
@@ -152,11 +152,11 @@ def list_fave_locations
152
end
153
154
def num_total_submissions
155
- user_submissions.size
+ user_submissions_count
156
157
158
def contributor_rank_int
159
- case user_submissions.size
+ case user_submissions_count
160
when 0...50
161
nil
162
when 50...250
app/views/users/profile.html.haml
@@ -24,7 +24,7 @@
24
%div.darkgrey.stats.font18.bold
25
%div.stat_num_o
26
%span.stats
27
- #{@user.user_submissions.size}
+ #{@user.user_submissions_count}
28
%span.stats_text Total Contributions
29
30
0 commit comments