Commit 7b646c73c04b5feb67a4df9d8f40f98d05a18fc7
1 parent
00d53e2f
Exists in
master
and in
29 other branches
ActionItem139: adding missing changes to ProfileInfoBlock
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1317 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
4 additions
and
2 deletions
Show diff stats
app/models/profile_info_block.rb
| ... | ... | @@ -5,9 +5,9 @@ class ProfileInfoBlock < Block |
| 5 | 5 | end |
| 6 | 6 | |
| 7 | 7 | def content |
| 8 | - user = owner | |
| 8 | + block = self | |
| 9 | 9 | lambda do |
| 10 | - render :file => 'account/user_info', :locals => { :user => user } | |
| 10 | + render :file => 'blocks/profile_info', :locals => { :block => block } | |
| 11 | 11 | end |
| 12 | 12 | end |
| 13 | 13 | ... | ... |