mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
19 lines
312 B
Ruby
19 lines
312 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module Arel # :nodoc: all
|
||
|
module Nodes
|
||
|
class Ordering < Unary
|
||
|
def nulls_first
|
||
|
NullsFirst.new(self)
|
||
|
end
|
||
|
|
||
|
def nulls_last
|
||
|
NullsLast.new(self)
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class NullsFirst < Ordering; end
|
||
|
class NullsLast < Ordering; end
|
||
|
end
|
||
|
end
|