Skip to content

Commit

Permalink
Myself rendering fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed Oct 7, 2010
1 parent fed377d commit 001b0a7
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -14,8 +14,11 @@ def display_profile

@user_profile = find_profile

is_myself = @user_profile && @user_profile.end_user == myself

result = renderer_cache(@user_profile) do |cache|
display_string = is_myself ? 'myself' : 'other'

result = renderer_cache(@user_profile,display_string) do |cache|
if @user_profile
@profile_user = @user_profile.end_user
@content_model = @user_profile.content_model
Expand Down

0 comments on commit 001b0a7

Please sign in to comment.