Sha256: 37a548bcb185d3a8f8a960d4dd55b744feab950030291172ae6215c70c45e46f
Contents?: true
Size: 489 Bytes
Versions: 7
Compression:
Stored size: 489 Bytes
Contents
class Kaui::AuditLog def self.description(log) if log.changed_by.present? changed_str = "Done 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
7 entries across 7 versions & 1 rubygems