Sha256: 0259d44ced820612b142f8baa2292779497a85d3909d4054bb052cb6b1ccca3d

Contents?: true

Size: 448 Bytes

Versions: 121

Compression:

Stored size: 448 Bytes

Contents

# 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
      def reverse
        NullsLast.new(expr.reverse)
      end
    end

    class NullsLast < Ordering
      def reverse
        NullsFirst.new(expr.reverse)
      end
    end
  end
end

Version data entries

121 entries across 116 versions & 11 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.7/lib/arel/nodes/ordering.rb
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/activerecord-7.1.3.4/lib/arel/nodes/ordering.rb
activerecord-8.0.1 lib/arel/nodes/ordering.rb
activerecord-8.0.0.1 lib/arel/nodes/ordering.rb
activerecord-7.2.2.1 lib/arel/nodes/ordering.rb
activerecord-7.1.5.1 lib/arel/nodes/ordering.rb
activerecord-7.0.8.7 lib/arel/nodes/ordering.rb
activerecord-8.0.0 lib/arel/nodes/ordering.rb
activerecord-7.2.2 lib/arel/nodes/ordering.rb
activerecord-7.1.5 lib/arel/nodes/ordering.rb
activerecord-8.0.0.rc2 lib/arel/nodes/ordering.rb
activerecord-7.2.1.2 lib/arel/nodes/ordering.rb
activerecord-7.1.4.2 lib/arel/nodes/ordering.rb
activerecord-7.0.8.6 lib/arel/nodes/ordering.rb
activerecord-6.1.7.10 lib/arel/nodes/ordering.rb
activerecord-8.0.0.rc1 lib/arel/nodes/ordering.rb
activerecord-6.1.7.9 lib/arel/nodes/ordering.rb
activerecord-7.2.1.1 lib/arel/nodes/ordering.rb
activerecord-7.1.4.1 lib/arel/nodes/ordering.rb
activerecord-7.0.8.5 lib/arel/nodes/ordering.rb