rx/presenters

View on GitHub
views/mdc/components/actions/delete.rb

Summary

Maintainability
A
0 mins
Test Coverage
module WebClient
  module Actions
    class Delete
      def call(action, parent_id, *)
        # Type, URL, Options, Params (passed into javascript event/action classes)
        [action.type, action.url,
         action.options.to_h.merge({__parent_id__: parent_id, input_tag: action.options[:input_tag]}), {}]
      end
    end
  end
end