Sha256: 4b1db97f2f178905040cd3d328fd0cad49ed2585e30e0eee8d8b85eb76459633
Contents?: true
Size: 557 Bytes
Versions: 5
Compression:
Stored size: 557 Bytes
Contents
# frozen_string_literal: true module Kaui class AuditLog def self.description(log) return unless log.changed_by.present? changed_str = "#{log.change_type} by #{log.changed_by.strip}" if log.reason_code.blank? && log.comments.blank? changed_str elsif log.reason_code.blank? "#{changed_str}: #{log.comments.strip}" elsif log.comments.blank? "#{changed_str}: #{log.reason_code.strip}" else "#{changed_str} (#{log.reason_code.strip} #{log.comments.strip})" end end end end
Version data entries
5 entries across 5 versions & 1 rubygems