Sha256: bed592cf56fb99d6e7603e123367150fee00c84da2f6b0953aa54f4e792554ea

Contents?: true

Size: 515 Bytes

Versions: 4

Compression:

Stored size: 515 Bytes

Contents

<b class="text-secondary"><%= update_relation_class(update_attrs) %></b>
<br>
<% if update_attrs[:attrs] == :deleted %>
  <%= t('loggable.activity.deleted') %>
<% else %>
  <% update_attrs[:attrs].each do |attr| %>
    <% attr.each do |key, from_to| %>
      <% next if from_to.nil? %>
      <i><%= key %></i>
      <br>
      <%= "from: #{from_to[:from].nil? ? 'Empty' : from_to[:from]}" %>
      <br>
      <%= "to: #{from_to[:to].nil? ? 'Empty' : from_to[:to]}" %>
      <br>
    <% end %>
  <% end %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
loggable_activity-0.1.56 lib/generators/loggable_activity/templates/views/loggable_activity/templates/shared/_update_attrs.html.erb
loggable_activity-0.1.55 lib/generators/loggable_activity/templates/views/loggable_activity/templates/shared/_update_attrs.html.erb
loggable_activity-0.1.54 lib/generators/loggable_activity/templates/views/loggable_activity/templates/shared/_update_attrs.html.erb
loggable_activity-0.1.53 lib/generators/loggable_activity/templates/views/loggable_activity/templates/shared/_update_attrs.html.erb