mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 17:51:13 +08:00
codestyle improvements
This commit is contained in:
parent
7fc5035d2d
commit
d522b3807a
2 changed files with 2 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue