diff options
author | AndrewMurrell <amurrel@purdue.edu> | 2014-04-07 11:07:14 -0400 |
---|---|---|
committer | AndrewMurrell <amurrel@purdue.edu> | 2014-04-07 11:07:14 -0400 |
commit | 45df045451bdafb630a5bbdb812510e35f2d2a2d (patch) | |
tree | 1bd3490b4ccaa1ddc0c68606924105bc5da4dfc5 /app/views/matches | |
parent | f3bd88ed2f517175e2d428bebafd28ad6ddd5b56 (diff) |
Fixed the rejection to be more Ruby-like with .reject.collect
Diffstat (limited to 'app/views/matches')
-rw-r--r-- | app/views/matches/show.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/matches/show.html.erb b/app/views/matches/show.html.erb index e8eaaa7..34a7432 100644 --- a/app/views/matches/show.html.erb +++ b/app/views/matches/show.html.erb @@ -87,7 +87,7 @@ <% @match.teams.each do |team| %> <% if team.users.include?(current_user) %> <ol id="boxes" class="sortable"> - <% team.users.collect { |u| (u.user_name == @current_user) ? u.user_name : "" }.each do |k| %> + <% team.users.reject { |u| (u.user_name == @current_user.user_name) }.collect {|u| u.user_name }.each do |k| %> <li><%= k%> <br> <% if (@tournament.game_id == 1) %> |