Skip to content

Commit

Permalink
Merge pull request urvin-compliance#108 from AliceVerner:fix_cols
Browse files Browse the repository at this point in the history
Fix cols method in table_model
  • Loading branch information
goulvench committed Mar 18, 2020
2 parents ecbfc9d + 5bdc413 commit 3f81d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/caracal/core/models/table_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def cells
end

def cols
rows.reduce([]) do |array, row|
@cols ||= rows.reduce([]) do |array, row|
row.each_with_index do |cell, index|
array[index] = [] if array[index].nil?
array[index] << cell
Expand Down

0 comments on commit 3f81d23

Please sign in to comment.