fixed failing spec for photos_controller#edit
This commit is contained in:
parent
1d399598d3
commit
4776f4810e
1 changed files with 1 additions and 3 deletions
|
|
@ -111,9 +111,7 @@ class PhotosController < ApplicationController
|
|||
respond_with @photo
|
||||
else
|
||||
flash[:error] = I18n.t 'photos.update.error'
|
||||
@album = @photo.album
|
||||
set_friends_and_status
|
||||
render :edit
|
||||
redirect_to [:edit, @photo]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue