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
|
respond_with @photo
|
||||||
else
|
else
|
||||||
flash[:error] = I18n.t 'photos.update.error'
|
flash[:error] = I18n.t 'photos.update.error'
|
||||||
@album = @photo.album
|
redirect_to [:edit, @photo]
|
||||||
set_friends_and_status
|
|
||||||
render :edit
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue