Sha256: 841da176ad393826df9d7c284ef3240524c6615c66c65ee0a5a66b40dc6e4bb2
Contents?: true
Size: 516 Bytes
Versions: 35
Compression:
Stored size: 516 Bytes
Contents
# frozen_string_literal: true require "active_model/type/string" module ActiveRecord module Type module OracleEnhanced class Raw < ActiveModel::Type::String # :nodoc: def type :raw end def serialize(value) # Encode a string or byte array as string of hex codes if value.nil? super else value = value.unpack("C*") value.map { |x| "%02X" % x }.join end end end end end end
Version data entries
35 entries across 35 versions & 1 rubygems