This prevents connecting to the database on rake assets:precompile, which fails in certain build environments. Running git blame on this and figuring out what in gods name this is for, is for another time.
11 lines
244 B
Ruby
11 lines
244 B
Ruby
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
|