Sha256: 0c07c5ba2e38d0c133952cde1941553873da6ae914d33eaf6b86e610ff302ffa
Contents?: true
Size: 392 Bytes
Versions: 38
Compression:
Stored size: 392 Bytes
Contents
module ForemanTasks module TasksHelper def format_task_input(task, include_action = false) parts = [] parts << task.humanized[:action] if include_action parts << Array(task.humanized[:input]).map do |part| if part.is_a? Array part[1][:text] else part.to_s end end.join('; ') h(parts.join(" ")) end end end
Version data entries
38 entries across 38 versions & 1 rubygems