Don't depend on user => person delagation so we can eventually get rid of that, thanks astronouth7303
This commit is contained in:
parent
ef2647c188
commit
ce0accafbb
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ class UsersController < ApplicationController
|
|||
def edit
|
||||
@user = current_user
|
||||
@person = @user.person
|
||||
@profile = @user.profile
|
||||
@profile = @user.person.profile
|
||||
@photos = Photo.find_all_by_person_id(@person.id).paginate :page => params[:page], :order => 'created_at DESC'
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue