diff options
| author | Teddy Wing | 2017-06-15 11:11:46 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2017-06-15 11:11:46 +0200 | 
| commit | d29cc6cd8fd1a4b6ffbd16968376c0a6744aac6a (patch) | |
| tree | d2a6ab0848bf0f9764c3923ed2a43ffa8d163168 /app/helpers | |
| parent | 6442236490568ae23e72baa236aad9339496652a (diff) | |
| download | chouette-core-d29cc6cd8fd1a4b6ffbd16968376c0a6744aac6a.tar.bz2 | |
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
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/table_builder_helper.rb | 4 | 
1 files 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)  | 
