Sha256: 33979209dd23a31b6899cb402041b79187b89121b8d8032f2e6a0bfd84f39c2c
Contents?: true
Size: 684 Bytes
Versions: 2
Compression:
Stored size: 684 Bytes
Contents
# rubocop:disable Naming/MethodName # rubocop:disable Naming/UncommunicativeMethodParamName module Arel module Nodes Arel::Nodes::SelectStatement.class_eval do # For INSERT statements attr_accessor :values_lists attr_accessor :union attr_writer :cores end end module Visitors class ToSql alias old_visit_Nodes_SelectStatement visit_Arel_Nodes_SelectStatement def visit_Arel_Nodes_SelectStatement(o, collector) visit(o.union, collector) if o.union old_visit_Nodes_SelectStatement(o, 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/select_statement.rb |
arel_toolkit-0.2.0 | lib/arel/extensions/select_statement.rb |