Sha256: a5e57f51470e1d9d698fd6bd9492832a4316eca5fa90ddb54da21441f0a5ef95
Contents?: true
Size: 767 Bytes
Versions: 14
Compression:
Stored size: 767 Bytes
Contents
<% if events data_events = events.map do |event| [event.event, event.actions.map do |action| additional_options = case action.type.to_s when 'replaces' then {grid_nesting:@grid_nesting, __parent_id__: parent_id} when 'update', 'post', 'delete', 'autocomplete' then {__parent_id__: parent_id} else {} end [action.type, action.url, action.options.to_h.merge(additional_options), action.params.to_h] end, {once: false}] end %> data-events = '<%= data_events.to_json %>' <% end %>
Version data entries
14 entries across 14 versions & 1 rubygems