Skip to content

Commit

Permalink
fix rendering for deleted events
Browse files Browse the repository at this point in the history
  • Loading branch information
desheikh committed Jan 11, 2024
1 parent 2800f0b commit 141cd15
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
eventsimple (1.2.2)
eventsimple (1.2.3)
dry-struct (~> 1.6)
dry-types (~> 1.7)
pg (~> 1.4)
Expand Down Expand Up @@ -80,6 +80,7 @@ GEM
public_suffix (>= 2.0.2, < 6.0)
ast (2.4.2)
base64 (0.1.1)
bigdecimal (3.1.5)
builder (3.2.4)
bundle-audit (0.1.0)
bundler-audit
Expand All @@ -104,7 +105,8 @@ GEM
dry-types (>= 1.7, < 2)
ice_nine (~> 0.11)
zeitwerk (~> 2.6)
dry-types (1.7.1)
dry-types (1.7.2)
bigdecimal (~> 3.0)
concurrent-ruby (~> 1.0)
dry-core (~> 1.0)
dry-inflector (~> 1.0)
Expand Down Expand Up @@ -158,14 +160,14 @@ GEM
mini_mime (1.1.5)
minitest (5.20.0)
nenv (0.3.0)
net-imap (0.4.7)
net-imap (0.4.9.1)
date
net-protocol
net-pop (0.1.2)
net-protocol
net-protocol (0.2.2)
timeout
net-smtp (0.4.0)
net-smtp (0.4.0.1)
net-protocol
nio4r (2.5.9)
nokogiri (1.15.4-arm64-darwin)
Expand Down
4 changes: 2 additions & 2 deletions app/views/eventsimple/entities/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<th scope="row" colspan="2">Data</th>
</tr>
<% if @selected_event.data.present? %>
<% @selected_event.data.attributes.each do |attr_name, attr_value| %>
<% @selected_event.data.to_hash.each do |attr_name, attr_value| %>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;<%= attr_name %></td>
<td><code class="entity-property"><%= attr_value %></code></td>
Expand All @@ -72,7 +72,7 @@
<tr>
<th scope="row" colspan="2">Metadata</th>
</tr>
<% @selected_event.metadata.attributes.each do |attr_name, attr_value| %>
<% @selected_event.metadata.to_hash.each do |attr_name, attr_value| %>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;<%= attr_name %></td>
<td><code class="entity-property">: <%= attr_value %></code></td>
Expand Down
2 changes: 1 addition & 1 deletion lib/eventsimple/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Eventsimple
VERSION = '1.2.2'
VERSION = '1.2.3'
end

0 comments on commit 141cd15

Please sign in to comment.