Sha256: 4c6e525e98b6689d58f9d7e12f28af629575fb948bdaa4c04c52a9d1f996afb8

Contents?: true

Size: 555 Bytes

Versions: 14

Compression:

Stored size: 555 Bytes

Contents

<% object ||= current_attributes_object %>
<% strategy ||= current_attributes_strategy || :none %>
<% url ||= nil %>
<% options ||= {} %>
<% options[:height] ||= 200 %>

<% if cloudinary_enabled? %>
  <%# TODO: How do we attach mutliple cloundinary images? %>
  <%= cloudinary_image_tag object.public_send(attribute), options %>
<% else %>
  <% if object.public_send(attribute).attached? %>
    <% object.send(attribute).each do |image| %>
      <%= image_tag photo_url_for_active_storage_attachment(image, options) %>
    <% end %>
  <% end %>
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bullet_train-themes-1.10.0 app/views/themes/base/attributes/_images.html.erb
bullet_train-themes-1.9.0 app/views/themes/base/attributes/_images.html.erb
bullet_train-themes-1.8.5 app/views/themes/base/attributes/_images.html.erb
bullet_train-themes-1.8.4 app/views/themes/base/attributes/_images.html.erb
bullet_train-themes-1.8.3 app/views/themes/base/attributes/_images.html.erb
bullet_train-themes-1.8.2 app/views/themes/base/attributes/_images.html.erb
bullet_train-themes-1.8.1 app/views/themes/base/attributes/_images.html.erb
bullet_train-themes-1.8.0 app/views/themes/base/attributes/_images.html.erb
bullet_train-themes-1.7.23 app/views/themes/base/attributes/_images.html.erb
bullet_train-themes-1.7.22 app/views/themes/base/attributes/_images.html.erb
bullet_train-themes-1.7.21 app/views/themes/base/attributes/_images.html.erb
bullet_train-themes-1.7.20 app/views/themes/base/attributes/_images.html.erb
bullet_train-themes-1.7.19 app/views/themes/base/attributes/_images.html.erb
bullet_train-themes-1.7.18 app/views/themes/base/attributes/_images.html.erb