Sha256: 12ef9786002cc29688ab45dd139983f5a4d7af6e17eca87f56561962ac3c6d82

Contents?: true

Size: 281 Bytes

Versions: 2

Compression:

Stored size: 281 Bytes

Contents

require 'arel/visitors/to_sql'

module Arel
  module Visitors
    class ToSql
      def visit_Array o
        if last_column.respond_to?(:array) && last_column.array
          quoted o
        else
          o.map { |x| visit x }.join(', ')
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
postgres_ext-0.2.1 lib/postgres_ext/arel/visitors/to_sql.rb
postgres_ext-0.2.0 lib/postgres_ext/arel/visitors/to_sql.rb