switch current_team to repository.team

This commit is contained in:
zmagod 2018-04-19 13:04:16 +02:00
parent 9baaad25b6
commit f3af8f4524
2 changed files with 3 additions and 3 deletions

View file

@ -2,11 +2,11 @@
module RepositoryActions
class DuplicateCell
def initialize(cell, new_row, user)
def initialize(cell, new_row, user, team)
@cell = cell
@new_row = new_row
@user = user
@team = user.current_team
@team = team
end
def call

View file

@ -49,7 +49,7 @@ module RepositoryActions
def duplicate_repository_cell(cell, new_row)
RepositoryActions::DuplicateCell.new(
cell, new_row, @user
cell, new_row, @user, @repository.team
).call
end
end