RS MS slightly less explosive end if you call real name on someone that doesn't have a profile
This commit is contained in:
parent
448fcf8f89
commit
fcbe8e42a0
2 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ module ApplicationHelper
|
||||||
when "User"
|
when "User"
|
||||||
user_path(person)
|
user_path(person)
|
||||||
else
|
else
|
||||||
link_to "unknown person", "#"
|
"unknown person"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ class Person
|
||||||
before_validation :clean_url
|
before_validation :clean_url
|
||||||
|
|
||||||
def real_name
|
def real_name
|
||||||
profile.first_name + " " + profile.last_name
|
profile.first_name.to_s + " " + profile.last_name.to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue