refactoring project team members controller (corresponding mental model)

This commit is contained in:
Andrey Kumanyaev 2013-01-22 21:20:39 +04:00 committed by Dmitriy Zaporozhets
parent ccf8fa4fa2
commit f6f414ce3b
8 changed files with 45 additions and 40 deletions

View file

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