lib/nexmo_developer/app/controllers/static_controller.rb in station-0.4.7 vs lib/nexmo_developer/app/controllers/static_controller.rb in station-0.4.8
- old
+ new
@@ -35,12 +35,11 @@
end
if request.path.delete('/') == 'team'
@team ||= LoadConfig.load_file('config/team.yml')
- @team['current'].each do |member|
- author = Blog::Author.new(AuthorParser.fetch_author(member['short-name']))
- member['image_url'] = author.build_avatar_url
+ @team['current'] = @team['current'].map do |member|
+ Blog::Author.new(AuthorParser.fetch_author(member['short-name']))
end
@careers = Greenhouse.devrel_careers
end