Sha256: 11bd8946b75217387a736db971a057582887a3de06ab1fa01cd2107875a6d99f
Contents?: true
Size: 395 Bytes
Versions: 1
Compression:
Stored size: 395 Bytes
Contents
module ForemanTasks module TasksHelper def format_task_input(task, include_action = false) parts = [] parts << task.get_humanized(:name) if include_action parts << Array(task.get_humanized(:input)).map do |part| if part.is_a? Array part[1][:text] else part.to_s end end.join('; ') parts.join(" ") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman-tasks-0.7.6 | app/helpers/foreman_tasks/tasks_helper.rb |