From d29cc6cd8fd1a4b6ffbd16968376c0a6744aac6a Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 15 Jun 2017 11:11:46 +0200 Subject: TableBuilder: Change `column.map` calls to `column.each` Since we're not setting the resulting array to anything, it's clearer to use the `#each` method instead. Refs #3479 --- app/helpers/table_builder_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/table_builder_helper.rb b/app/helpers/table_builder_helper.rb index 34f610975..9384f8791 100644 --- a/app/helpers/table_builder_helper.rb +++ b/app/helpers/table_builder_helper.rb @@ -41,7 +41,7 @@ module TableBuilderHelper hcont << content_tag(:th, checkbox(id_name: '0', value: 'all')) end - columns.map do |column| + columns.each do |column| hcont << content_tag(:th, build_column_header( column, collection.model, @@ -73,7 +73,7 @@ module TableBuilderHelper ) end - columns.map do |column| + columns.each do |column| value = column.value(item) if column_is_linkable?(column) -- cgit v1.2.3