Skip to content

Commit

Permalink
Replace .length to .size on wiki index (publiclab#8413)
Browse files Browse the repository at this point in the history
changed  @user.note.lenght --> @user.note.size
  • Loading branch information
yashkpal1711 authored and nadimakhtar97 committed Sep 21, 2020
1 parent 5cfc4c4 commit 4bbfdc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/wiki/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<% elsif params[:action] == "author" %>

<h3 style="margin-top:0;"><%= raw translation('wiki.index.wiki_pages_by', :url1 => "/people/"+@user.name, :user => @user.name, :note_length => @user.notes.length, :time => time_ago_in_words(@user.notes.first.created_at)) %></h3>
<h3 style="margin-top:0;"><%= raw translation('wiki.index.wiki_pages_by', :url1 => "/people/"+@user.name, :user => @user.name, :note_length => @user.notes.size, :time => time_ago_in_words(@user.notes.first.created_at)) %></h3>

<% else %>

Expand Down

0 comments on commit 4bbfdc2

Please sign in to comment.