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 9c55c52 commit dcb2c47Copy full SHA for dcb2c47
1 file changed
app/views/curator/users.html.erb
@@ -83,7 +83,7 @@
83
<% User::CREATED_RESOURCE_TYPES.each do |type| %>
84
<% count = user.send(type).count %>
85
<% if count > 0 %>
86
- <% resources = user.send(type).last(3) %>
+ <% resources = user.send(type).order(created_at: :desc).first(3) %>
87
<strong><%= resources.first.class.model_name.human -%></strong>
88
<ul>
89
<% resources.each do |resource| %>
0 commit comments