app/views/foreman_tasks/api/locks/show.json.rabl in foreman-tasks-5.2.3 vs app/views/foreman_tasks/api/locks/show.json.rabl in foreman-tasks-5.3.0

- old
+ new

@@ -1,4 +1,8 @@ object @lock attributes :name, :resource_type, :resource_id node(:exclusive) { !locals[:link] } +node(:link) do + method = "#{@object.resource_type.underscore.split('/').first}_path".to_sym + public_send(method, @object.resource_id) if defined?(method) +end