Sha256: 36c22272d1a5aa6cc49b82b339ace848a212a01bb1cd61aa4bed654218a6b425

Contents?: true

Size: 506 Bytes

Versions: 4

Compression:

Stored size: 506 Bytes

Contents

- if object_changes.any?
  h3 Object changes
  table.diff
    thead: tr
      th Attribute
      th Old value
      th New value
    tbody
      - object_changes.each do |attr, diff|
        - old_value, new_value = diff
        - old_class, new_class = versions_diff_classes(old_value, new_value)

        tr
          td.attr-name = attr.humanize
          td class=old_class = pretty_version_attribute_value(attr, old_value)
          td class=new_class = pretty_version_attribute_value(attr, new_value)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
activeadmin-audit-0.1.4 app/views/admin/content_versions/_object_changes.html.slim
activeadmin-audit-0.1.2 app/views/admin/content_versions/_object_changes.html.slim
activeadmin-audit-0.1.1 app/views/admin/content_versions/_object_changes.html.slim
activeadmin-audit-0.1.0 app/views/admin/content_versions/_object_changes.html.slim