Sha256: c3a565c3f7d3cc258cf6ad99e8754abe4b58a82d8ce2e79b87b633e3f4a7d8ac
Contents?: true
Size: 512 Bytes
Versions: 12
Compression:
Stored size: 512 Bytes
Contents
# rubocop:disable Naming/MethodName # rubocop:disable Naming/UncommunicativeMethodParamName module Arel module Nodes class CurrentTimestamp < TimeWithPrecision end end module Visitors class ToSql def visit_Arel_Nodes_CurrentTimestamp(o, collector) collector << 'current_timestamp' collector << "(#{o.precision.to_i})" if o.precision collector end end end end # rubocop:enable Naming/MethodName # rubocop:enable Naming/UncommunicativeMethodParamName
Version data entries
12 entries across 12 versions & 1 rubygems