Sha256: a88e9adc06706bea45e79a5db111f02ce43967a8f77a82a68251b2aa4288c40b

Contents?: true

Size: 556 Bytes

Versions: 12

Compression:

Stored size: 556 Bytes

Contents

# rubocop:disable Naming/MethodName
# rubocop:disable Naming/UncommunicativeMethodParamName

module Arel
  module Nodes
    # Postgres: https://www.postgresql.org/docs/9.1/functions-comparisons.html
    class ArraySubselect < Arel::Nodes::Unary
    end
  end

  module Visitors
    class ToSql
      def visit_Arel_Nodes_ArraySubselect(o, collector)
        collector << 'ARRAY('
        visit o.expr, collector
        collector << ')'
      end
    end
  end
end

# rubocop:enable Naming/MethodName
# rubocop:enable Naming/UncommunicativeMethodParamName

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
arel_toolkit-0.4.9 lib/arel/extensions/array_subselect.rb
arel_toolkit-0.4.8 lib/arel/extensions/array_subselect.rb
arel_toolkit-0.4.7 lib/arel/extensions/array_subselect.rb
arel_toolkit-0.4.6 lib/arel/extensions/array_subselect.rb
arel_toolkit-0.4.5 lib/arel/extensions/array_subselect.rb
arel_toolkit-0.4.4 lib/arel/extensions/array_subselect.rb
arel_toolkit-0.4.3 lib/arel/extensions/array_subselect.rb
arel_toolkit-0.4.2 lib/arel/extensions/array_subselect.rb
arel_toolkit-0.4.1 lib/arel/extensions/array_subselect.rb
arel_toolkit-0.4.0 lib/arel/extensions/array_subselect.rb
arel_toolkit-0.3.0 lib/arel/extensions/array_subselect.rb
arel_toolkit-0.2.0 lib/arel/extensions/array_subselect.rb