Sha256: bba1b230e312f242255376e04c6840079d680bee4b1399d42d17f3222db2a84e

Contents?: true

Size: 257 Bytes

Versions: 37

Compression:

Stored size: 257 Bytes

Contents

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

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
foreman-tasks-10.0.2 app/views/foreman_tasks/api/locks/show.json.rabl
foreman-tasks-10.0.1 app/views/foreman_tasks/api/locks/show.json.rabl
foreman-tasks-10.0.0 app/views/foreman_tasks/api/locks/show.json.rabl
foreman-tasks-9.2.3 app/views/foreman_tasks/api/locks/show.json.rabl
foreman-tasks-9.2.2 app/views/foreman_tasks/api/locks/show.json.rabl
foreman-tasks-9.2.1 app/views/foreman_tasks/api/locks/show.json.rabl
foreman-tasks-9.2.0 app/views/foreman_tasks/api/locks/show.json.rabl
foreman-tasks-9.1.1 app/views/foreman_tasks/api/locks/show.json.rabl
foreman-tasks-9.0.4 app/views/foreman_tasks/api/locks/show.json.rabl
foreman-tasks-9.1.0 app/views/foreman_tasks/api/locks/show.json.rabl
foreman-tasks-9.0.2 app/views/foreman_tasks/api/locks/show.json.rabl
foreman-tasks-9.0.1 app/views/foreman_tasks/api/locks/show.json.rabl
foreman-tasks-8.3.3 app/views/foreman_tasks/api/locks/show.json.rabl
foreman-tasks-9.0.0 app/views/foreman_tasks/api/locks/show.json.rabl
foreman-tasks-8.2.1 app/views/foreman_tasks/api/locks/show.json.rabl
foreman-tasks-8.1.4 app/views/foreman_tasks/api/locks/show.json.rabl
foreman-tasks-8.3.2 app/views/foreman_tasks/api/locks/show.json.rabl
foreman-tasks-8.3.1 app/views/foreman_tasks/api/locks/show.json.rabl
foreman-tasks-8.1.3 app/views/foreman_tasks/api/locks/show.json.rabl
foreman-tasks-8.3.0 app/views/foreman_tasks/api/locks/show.json.rabl