Sha256: 78eacb3f1749f91ec70d98b7794a0854c52834b472431b02dbf7ec2465ebf737
Contents?: true
Size: 492 Bytes
Versions: 69
Compression:
Stored size: 492 Bytes
Contents
module Katello module Concerns::AuditCommentExtensions extend ActiveSupport::Concern module ClassMethods # to prevent PG::StringDataRightTruncation: ERROR: value too long for type character varying(255) def truncate_audit_comment(long_comment) if long_comment.length > 255 Rails.logger.info "Truncating audit comment: #{long_comment}" "#{long_comment[0..250]}..." else long_comment end end end end end
Version data entries
69 entries across 69 versions & 1 rubygems