Permalink
Browse files

fix warnings about adding parentheses for future versions of ruby

  • Loading branch information...
isaackearse committed Dec 12, 2008
1 parent cd59873 commit d6b5007b25fb3487e6b508eae3927d4a56a16e38
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/views/admin/assets/index.rhtml
  2. +1 −1 app/views/admin/comments/index.rhtml
@@ -52,7 +52,7 @@
<h3>Some stats</h3>
<p>
You have a uploaded a total of <strong><%= pluralize site.assets.count, 'asset'%></strong>, using
- <strong><%=h number_to_human_size site.assets.sum(:size) %></strong>.
+ <strong><%=h number_to_human_size(site.assets.sum(:size)) %></strong>.
</p>
</div>
<% end %>
@@ -22,7 +22,7 @@ Comments for all articles
<blockquote><p>"<%= strip_tags(comment.body) %>"</p></blockquote>
<% end -%>
<span class="meta">
- <cite>&mdash; <%= author_link_for comment %><%=h %( (#{comment.author_email})) unless comment.author_email.blank? %> said <%=h time_ago_in_words comment.created_at %> ago</cite>
+ <cite>&mdash; <%= author_link_for comment %><%=h %( (#{comment.author_email})) unless comment.author_email.blank? %> said <%=h time_ago_in_words(comment.created_at) %> ago</cite>
<%= link_to_remote 'Edit', :url => edit_article_comment_path(comment.article, comment), :method => :get %> |
<% if comment.approved? -%>

0 comments on commit d6b5007

Please sign in to comment.