mirror of
https://github.com/diaspora/diaspora.git
synced 2026-01-09 07:08:07 -05:00
14 lines
275 B
Ruby
14 lines
275 B
Ruby
# frozen_string_literal: true
|
|
|
|
module ServicesHelper
|
|
def contact_proxy(friend)
|
|
friend.contact || contact_proxy_template.dup.tap {|c| c.person = friend.person }
|
|
end
|
|
|
|
private
|
|
|
|
def contact_proxy_template
|
|
@@contact_proxy ||= Contact.new(:aspects => [])
|
|
end
|
|
end
|