codestyle improvements

This commit is contained in:
Miha Mencin 2019-09-06 14:59:30 +02:00
parent 7fc5035d2d
commit d522b3807a
2 changed files with 2 additions and 7 deletions

View file

@ -624,12 +624,7 @@ class MyModulesController < ApplicationController
end
def unshared_inventory
#binding.pry
render_403 unless Repository.used_on_task_but_unshared(@my_module, current_team)
.where(id: params[:inventory_id])
.any?
@inventory = Repository.find(params[:inventory_id])
@inventory = Repository.used_on_task_but_unshared(@my_module, current_team).find(params[:inventory_id])
@inventory_admin = @inventory.created_by
end

View file

@ -406,7 +406,7 @@ Rails.application.routes.draw do
to: 'my_modules#unassign_repository_records',
as: :unassign_repository_records
get 'unshared_inventory/:inventory_id',
to: "my_modules#unshared_inventory",
to: 'my_modules#unshared_inventory',
as: :unshared_inventory
get 'archive' # Archive view for single module
get 'complete_my_module'