fix artist deletion notifications
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user