Add functional in admin section

This commit is contained in:
Andrey Kumanyaev 2012-12-26 02:52:20 +04:00
parent 17ea019f4e
commit 9c574464a6
7 changed files with 106 additions and 19 deletions

View file

@ -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