fix artist deletion notifications

This commit is contained in:
Toks
2013-06-05 13:12:18 -04:00
parent 6f2d57882e
commit b7607e2284

View File

@@ -88,7 +88,7 @@ class ArtistsController < ApplicationController
raise User::PrivilegeError raise User::PrivilegeError
end end
@artist.update_attribute(:is_active, false) @artist.update_attribute(:is_active, false)
respond_with(@artist, :notice => "Artist deleted") redirect_to(artist_path(@artist), :notice => "Artist deleted")
end end
def undelete def undelete
@@ -97,7 +97,7 @@ class ArtistsController < ApplicationController
raise User::PrivilegeError raise User::PrivilegeError
end end
@artist.update_attribute(:is_active, true) @artist.update_attribute(:is_active, true)
respond_with(@artist, :notice => "Artist undeleted") redirect_to(artist_path(@artist), :notice => "Artist undeleted")
end end
def revert def revert