class Wco::GalleriesController

def destroy

def destroy
  authorize! :destroy, @gallery
  @gallery.delete
  flash[:notice] = 'Marked the gallery deleted.'
  redirect_to( request.referrer || galleries_path )
end