Skip to content
Extraits de code Groupes Projets
Valider 55952d00 rédigé par danielvincent's avatar danielvincent
Parcourir les fichiers

fixed failing photoscontroller spec.

parent 8df864de
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -77,9 +77,16 @@ class PhotosController < ApplicationController
if photo
photo.destroy
flash[:notice] = I18n.t 'photos.destroy.notice'
if photo.status_message_id
respond_with :location => photo.status_message
else
respond_with :location => photos_path
end
else
respond_with :location => photos_path
end
respond_with :location => photo.status_message
end
def show
......@@ -108,7 +115,6 @@ class PhotosController < ApplicationController
if current_user.update_post( photo, params[:photo] )
flash.now[:notice] = I18n.t 'photos.update.notice'
respond_to do |format|
format.html
format.js{ render :json => photo, :status => 200 }
end
else
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter