refactor ident_for helper

This commit is contained in:
Priit Tark 2015-03-17 11:20:17 +02:00
parent b52ec4e35e
commit 1264cde50d
3 changed files with 6 additions and 6 deletions

View file

@ -9,12 +9,12 @@ module ApplicationHelper
"background-image: url(#{image_path(unstable_env.to_s + '.png')});"
end
def ident_indicator(contact)
def ident_for(contact)
case contact.ident_type
when 'birthday'
"[#{contact.ident_type}]"
"#{contact.ident} [#{contact.ident_type}]"
else
"[#{contact.ident_country_code} #{contact.ident_type}]"
"#{contact.ident} [#{contact.ident_country_code} #{contact.ident_type}]"
end
end
end