From 20501d62ea188c74b55c72fd9a3681935b5c94a9 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Wed, 6 Feb 2008 22:02:16 +0000 Subject: [PATCH] ActionItem154: adding helper to display the user image --- app/helpers/application_helper.rb | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 1df4566..144240e 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -363,4 +363,8 @@ module ApplicationHelper 'default' end + def profile_image(profile) + image_tag(profile.image.public_filename(:thumb)) if profile.image + end + end -- libgit2 0.21.2