Exception: Gitlab::Pagination::Keyset::SqlTypeMissingError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/gitlab/pagination/keyset/sql_type_missing_error.rb

Class Method Summary collapse

Class Method Details

.for_column(column) ⇒ Object


6
7
8
9
10
11
12
13
14
15
# File 'lib/gitlab/pagination/keyset/sql_type_missing_error.rb', line 6

def self.for_column(column)
  message = <<~TEXT
  The "sql_type" attribute is not set for the following column definition:
  #{column.attribute_name}
  
  See the ColumnOrderDefinition class for more context.
  TEXT

  new(message)
end