Commit 6caf07a0 authored by Kerri Miller's avatar Kerri Miller

Nit picking typos

parent 4df42f89
...@@ -363,9 +363,10 @@ module Issuable ...@@ -363,9 +363,10 @@ module Issuable
end end
# Includes table keys in group by clause when sorting # Includes table keys in group by clause when sorting
# preventing errors in postgres # preventing errors in Postgres
#
# Returns an array of Arel columns
# #
# Returns an array of arel columns
def grouping_columns(sort) def grouping_columns(sort)
sort = sort.to_s sort = sort.to_s
grouping_columns = [arel_table[:id]] grouping_columns = [arel_table[:id]]
...@@ -384,9 +385,10 @@ module Issuable ...@@ -384,9 +385,10 @@ module Issuable
end end
# Includes all table keys in group by clause when sorting # Includes all table keys in group by clause when sorting
# preventing errors in postgres when using CTE search optimisation # preventing errors in Postgres when using CTE search optimization
#
# Returns an array of Arel columns
# #
# Returns an array of arel columns
def issue_grouping_columns(use_cte: false) def issue_grouping_columns(use_cte: false)
if use_cte if use_cte
attribute_names.map { |attr| arel_table[attr.to_sym] } attribute_names.map { |attr| arel_table[attr.to_sym] }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment