Cleaning and refactoring
This commit is contained in:
parent
74f8bc7298
commit
cb59aade4e
12 changed files with 135 additions and 232 deletions
|
@ -18,7 +18,7 @@ class UsersProject < ActiveRecord::Base
|
|||
|
||||
delegate :name, :email, :to => :user, :prefix => true
|
||||
|
||||
def self.bulk_import(project, user_ids, project_access, repo_access)
|
||||
def self.bulk_import(project, user_ids, project_access)
|
||||
UsersProject.transaction do
|
||||
user_ids.each do |user_id|
|
||||
users_project = UsersProject.new(
|
||||
|
@ -31,7 +31,7 @@ class UsersProject < ActiveRecord::Base
|
|||
end
|
||||
end
|
||||
|
||||
def self.user_bulk_import(user, project_ids, project_access, repo_access)
|
||||
def self.user_bulk_import(user, project_ids, project_access)
|
||||
UsersProject.transaction do
|
||||
project_ids.each do |project_id|
|
||||
users_project = UsersProject.new(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue