whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Bazley <s...@apache.org>
Subject [whimsy.git] [1/1] Commit a122696: Document transformation and avoid making a copy
Date Thu, 14 Jan 2016 12:00:38 GMT
Commit a122696e780fcee3e1c801d9a09921f63ba0732b:
    Document transformation and avoid making a copy


Branch: refs/heads/master
Author: Sebb <sebb@apache.org>
Committer: Sebb <sebb@apache.org>
Pusher: sebb <sebb@apache.org>

------------------------------------------------------------
www/roster/public_committee_info.rb                          | +++ -
------------------------------------------------------------
4 changes: 3 additions, 1 deletions.
------------------------------------------------------------


diff --git a/www/roster/public_committee_info.rb b/www/roster/public_committee_info.rb
index 3c16805..2735213 100644
--- a/www/roster/public_committee_info.rb
+++ b/www/roster/public_committee_info.rb
@@ -39,8 +39,10 @@
     mail_list: committee.mail_list,
     established: committee.established,
     report: schedule,
+    # Convert {:name=>"Public Name", :id=>"availid"} to 
+    # "chair": { "availid": { "name": "Public Name" } }
     chair: Hash[committee.chairs.map {|chair|
-      chair = chair.dup; [chair.delete(:id), chair]}],
+      [chair[:id], :name => chair[:name] ]}],
     roster: committee.roster,
     pmc: !ASF::Committee.nonpmcs.include?(committee)
   }]

Mime
View raw message