Sha256: e25a627085d9f0539c44dc1036ab8b0f07bf44e8467b7b12f37cb60288017e2b
Contents?: true
Size: 524 Bytes
Versions: 4
Compression:
Stored size: 524 Bytes
Contents
module ForemanRemoteExecution module JobTemplatesExtensions extend ActiveSupport::Concern included do alias_method_chain :permitted_actions, :run_button end def permitted_actions_with_run_button(template) original = permitted_actions_without_run_button(template) if template.is_a?(JobTemplate) && !template.snippet original.unshift(display_link_if_authorized(_('Run'), hash_for_new_job_invocation_path(:template_id => template.id))) end original end end end
Version data entries
4 entries across 4 versions & 1 rubygems