app/helpers/activities_helper.rb
# Only show member photo for certain types of activity
Only show member photo for certain types of activity
Only show member photo for certain types of activity
def posterPhoto(activity)
    shouldShow = case activity_type(activity)
    when "Photo"
      true
    when "Friendship"
      true
    else
      false
    end
    if shouldShow
      image_link(activity.owner, :image => :small)
    end
  end
def posterPhoto ( activity ) shouldShow = case activity_type ( activity ) when "Photo" true when "Friendship" true else false end if shouldShow image_link ( activity . owner , :image => :small ) end end
Only show member photo for certain types of activity
Only show member photo for certain types of activity
activity
<not_specific>