Sha256: 194024751b427b1087f63763fd70ca75815607f42a3d9a6be3f05384a12b15d9
Contents?: true
Size: 565 Bytes
Versions: 11
Compression:
Stored size: 565 Bytes
Contents
# rubocop:disable Naming/MethodName # rubocop:disable Naming/UncommunicativeMethodParamName module Arel module Visitors class ToSql def visit_Arel_Nodes_Assignment(o, collector) collector = visit o.left, collector collector << ' = ' case o.right when Arel::Nodes::Node, Arel::Attributes::Attribute visit o.right, collector else collector << quote(o.right).to_s end end end end end # rubocop:enable Naming/MethodName # rubocop:enable Naming/UncommunicativeMethodParamName
Version data entries
11 entries across 11 versions & 1 rubygems