Don't depend on user => person delagation so we can eventually get rid of that, thanks astronouth7303

This commit is contained in:
Raphael 2010-09-27 11:03:48 -07:00
parent ef2647c188
commit ce0accafbb

View file

@ -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