rx/presenters

View on GitHub
views/mdc/components/event.erb

Summary

Maintainability
Test Coverage
<% if events
     require_relative "actions/resolver"
     data_events = events.map do |event|
       [event.event,
        event.actions.map do |action|
          action_proc = WebClient::Actions::Resolver.new(comp, action).resolve
          action_proc.call(action, parent_id, @grid_nesting)
        end,
       {once: false}]
     end %>
  data-events = '<%= data_events.to_json %>'
<% end %>