Prefer #map over #collect

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/6827/head
Alex Coles 10 years ago
parent f0b95955a0
commit 1139a2ba20
  1. 2
      app/helpers/meetings_helper.rb

@ -20,7 +20,7 @@
module MeetingsHelper
def format_participant_list(participants)
participants.sort.collect { |p| link_to_user p.user }.join('; ').html_safe
participants.sort.map { |p| link_to_user p.user }.join('; ').html_safe
end
def render_meeting_journal(model, journal, options = {})

Loading…
Cancel
Save