refactoring project team members controller (corresponding mental model)
This commit is contained in:
parent
ccf8fa4fa2
commit
f6f414ce3b
8 changed files with 45 additions and 40 deletions
|
@ -3,8 +3,8 @@ module ProjectsHelper
|
|||
@project.users_projects.sort_by(&:project_access).reverse.group_by(&:project_access)
|
||||
end
|
||||
|
||||
def remove_from_team_message(project, member)
|
||||
"You are going to remove #{member.user_name} from #{project.name}. Are you sure?"
|
||||
def remove_from_project_team_message(project, user)
|
||||
"You are going to remove #{user.name} from #{project.name} project team. Are you sure?"
|
||||
end
|
||||
|
||||
def link_to_project project
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue