making instantiating an empty contact
This commit is contained in:
parent
23754ec3fb
commit
8196ee33dd
1 changed files with 3 additions and 0 deletions
|
|
@ -24,6 +24,9 @@ class PhotosController < ApplicationController
|
|||
if @contact
|
||||
@aspects_with_person = @contact.aspects
|
||||
@contacts_of_contact = @contact.contacts
|
||||
else
|
||||
@contact = Contact.new
|
||||
@contacts_of_contact = []
|
||||
end
|
||||
|
||||
@posts = current_user.visible_photos.where(
|
||||
|
|
|
|||
Loading…
Reference in a new issue