Fix rep destroy redirect
This commit is contained in:
parent
3b78277536
commit
4f6bfac345
|
@ -24,9 +24,10 @@ class RepositoriesController < ApplicationController
|
|||
|
||||
def destroy
|
||||
@repository.destroy
|
||||
platform_id = @repository.platform_id
|
||||
|
||||
flash[:notice] = t("flash.repository.destroyed")
|
||||
redirect_to platform_path(@platform)
|
||||
redirect_to platform_path(platform_id)
|
||||
end
|
||||
|
||||
def create
|
||||
|
|
Loading…
Reference in New Issue