app/view_objects/board_bag.rb
# Issues visible on board and groupped by columns
Issues visible on board and groupped by columns
Issues visible on board and groupped by columns
def issues_by_columns
    @issues_by_columns ||= begin
      result_hash = board.columns.each_with_object({}) do |column, hash|
        hash[column.id] = []
      end
      board_issues.each_with_object(result_hash) do |board_issue, hash|
        hash[board_issue.column_id] << board_issue
      end
    end
  end
def issues_by_columns @issues_by_columns ||= begin result_hash = board . columns . each_with_object ( { } ) do | column , hash | hash [ column . id ] = [ ] end board_issues . each_with_object ( result_hash ) do | board_issue , hash | hash [ board_issue . column_id ] << board_issue end end end
Issues visible on board and groupped by columns
Issues visible on board and groupped by columns