lib/arel/extensions/current_timestamp.rb
# rubocop:disable Naming/MethodName
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