Add functional in admin section
This commit is contained in:
parent
17ea019f4e
commit
9c574464a6
7 changed files with 106 additions and 19 deletions
|
@ -33,6 +33,8 @@ class UsersProject < ActiveRecord::Base
|
|||
|
||||
delegate :name, :email, to: :user, prefix: true
|
||||
|
||||
scope :in_project, ->(project) { where(project_id: project.id) }
|
||||
|
||||
class << self
|
||||
def import_team(source_project, target_project)
|
||||
UsersProject.without_repository_callback do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue