From 7b646c73c04b5feb67a4df9d8f40f98d05a18fc7 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Fri, 8 Feb 2008 23:35:46 +0000 Subject: [PATCH] ActionItem139: adding missing changes to ProfileInfoBlock --- app/models/profile_info_block.rb | 4 ++-- app/views/blocks/profile_info.rhtml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/models/profile_info_block.rb b/app/models/profile_info_block.rb index 2c0995f..aed8457 100644 --- a/app/models/profile_info_block.rb +++ b/app/models/profile_info_block.rb @@ -5,9 +5,9 @@ class ProfileInfoBlock < Block end def content - user = owner + block = self lambda do - render :file => 'account/user_info', :locals => { :user => user } + render :file => 'blocks/profile_info', :locals => { :block => block } end end diff --git a/app/views/blocks/profile_info.rhtml b/app/views/blocks/profile_info.rhtml index a76c312..a4e9164 100644 --- a/app/views/blocks/profile_info.rhtml +++ b/app/views/blocks/profile_info.rhtml @@ -1,5 +1,7 @@

<%= block.owner.name %>

+<%= profile_image(block.owner) %> +