diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2012-07-31 08:31:12 +0300 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2012-07-31 08:31:12 +0300 |
commit | 1f1b0f278be73091763b9133db6660b504f63fac (patch) | |
tree | 1c629095bbe75c0425f3b2226711a0c9dda53aee /app/views | |
parent | 46877fbc5335fc60b96b218cbfd787387bf7d94e (diff) | |
download | refinerycms-blog-1f1b0f278be73091763b9133db6660b504f63fac.tar.gz refinerycms-blog-1f1b0f278be73091763b9133db6660b504f63fac.tar.bz2 refinerycms-blog-1f1b0f278be73091763b9133db6660b504f63fac.zip |
Move avatar_url method to posts helper because view stuff shouldn't be in the model.
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/refinery/blog/posts/_comment.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/refinery/blog/posts/_comment.html.erb b/app/views/refinery/blog/posts/_comment.html.erb index 659f433..2df0420 100644 --- a/app/views/refinery/blog/posts/_comment.html.erb +++ b/app/views/refinery/blog/posts/_comment.html.erb @@ -1,5 +1,5 @@ <article class='blog_comment_message' id='<%= "comment-#{comment.to_param}" %>'> - <%= image_tag comment.avatar_url, :alt => comment.name, :class => 'avatar' %> + <%= image_tag avatar_url(comment.email), :alt => comment.name, :class => 'avatar' %> <%= simple_format auto_link(comment.message.to_s) %> <footer class='blog_comment_author'> <p> |