We pass in nil as a size to person_image_tag, so we need to default it more forcibly.

This commit is contained in:
Raphael Sofaer 2011-08-03 13:45:45 -07:00
parent 168ccc11b0
commit 0fff54e074

View file

@ -41,7 +41,8 @@ module ApplicationHelper
person_image_link(current_user.person)
end
def person_image_tag(person, size=:thumb_small)
def person_image_tag(person, size=nil)
size ||= :thumb_small
"<img alt=\"#{h(person.name)}\" class=\"avatar\" data-person_id=\"#{person.id}\" src=\"#{person.profile.image_url(size)}\" title=\"#{h(person.name)} (#{h(person.diaspora_handle)})\">".html_safe
end