Sha256: b7fe47ed83453481dac8eaff782eeab192e6e7a6c5ca2aadb4bbaacc09be4200
Contents?: true
Size: 576 Bytes
Versions: 2
Compression:
Stored size: 576 Bytes
Contents
# rubocop:disable Naming/MethodName # rubocop:disable Naming/UncommunicativeMethodParamName module Arel module Nodes class Array < Arel::Nodes::Node attr_reader :items def initialize(items) super() @items = items end end end module Visitors class ToSql def visit_Arel_Nodes_Array(o, collector) collector << 'ARRAY[' inject_join(o.items, collector, ', ') collector << ']' end end end end # rubocop:enable Naming/MethodName # rubocop:enable Naming/UncommunicativeMethodParamName
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
arel_toolkit-0.3.0 | lib/arel/extensions/array.rb |
arel_toolkit-0.2.0 | lib/arel/extensions/array.rb |