Sha256: 3667497ecfcf6e08a43563bdb8d95a7346dcdb527840104d37c1ccbc4f0e0e8b

Contents?: true

Size: 383 Bytes

Versions: 19

Compression:

Stored size: 383 Bytes

Contents

<%# @param object [model] model instance %>
<%# @param field_name [String] name of the field %>
<%# @param value [Object] value of the field %>
<%# @param metadata [Hash] metadata of the field %>
<% if value.present? %>
  <%= show_link value, options: { readonly: true } %>
<% elsif !metadata[:is_polymorphic] %>
  <%= new_link metadata[:class] %>
<% else %>
  <%= null %>
<% end %>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
wallaby-8.0.0 app/views/wallaby/resources/show/_belongs_to.html.erb
wallaby-7.0.0 app/views/wallaby/resources/show/_belongs_to.html.erb
wallaby-7.0.0.beta2 app/views/wallaby/resources/show/_belongs_to.html.erb
wallaby-7.0.0.beta1 app/views/wallaby/resources/show/_belongs_to.html.erb
wallaby-6.1.6 app/views/wallaby/resources/show/_belongs_to.html.erb
wallaby-6.1.5 app/views/wallaby/resources/show/_belongs_to.html.erb
wallaby-6.1.4 app/views/wallaby/resources/show/_belongs_to.html.erb
wallaby-6.1.3 app/views/wallaby/resources/show/_belongs_to.html.erb
wallaby-6.1.2 app/views/wallaby/resources/show/_belongs_to.html.erb
wallaby-6.1.1 app/views/wallaby/resources/show/_belongs_to.html.erb
wallaby-6.1.0 app/views/wallaby/resources/show/_belongs_to.html.erb
wallaby-6.0.2 app/views/wallaby/resources/show/_belongs_to.html.erb
wallaby-6.0.1 app/views/wallaby/resources/show/_belongs_to.html.erb
wallaby-5.1.8 app/views/wallaby/resources/show/_belongs_to.html.erb
wallaby-5.1.7 app/views/wallaby/resources/show/_belongs_to.html.erb
wallaby-5.1.6 app/views/wallaby/resources/show/_belongs_to.html.erb
wallaby-5.1.5 app/views/wallaby/resources/show/_belongs_to.html.erb
wallaby-5.1.4 app/views/wallaby/resources/show/_belongs_to.html.erb
wallaby-5.1.3 app/views/wallaby/resources/show/_belongs_to.html.erb