Feature implemented

This commit is contained in:
Dmitriy Zaporozhets 2012-10-24 14:20:53 +03:00
parent 012d62b198
commit fd0aca1225
5 changed files with 58 additions and 3 deletions

View file

@ -43,4 +43,12 @@ class TeamMembersController < ProjectResourceController
format.js { render nothing: true }
end
end
def apply_import
giver = Project.find(params[:source_project_id])
status = UsersProject.import_team(giver, project)
notice = status ? "Succesfully imported" : "Import failed"
redirect_to project_team_members_path(project), notice: notice
end
end