Sha256: ce9bcdc8e038f951f0931517d2ac8d057621e2ed9f7c55c6973b5344d65783a2
Contents?: true
Size: 555 Bytes
Versions: 6
Compression:
Stored size: 555 Bytes
Contents
module WebClient module Actions class Loads include Voom::Presenters::WebClient::Helpers::ExpandHash def call(action, *) # Type, URL, Options, Params (passed into javascript event/action classes) safe_options = action.options.to_h [action.type, action.url, safe_options.merge({input_tag: safe_options.fetch(:input_tag, nil), wait_for_download: safe_options.fetch(:wait_for_download, false)}), expand_hash(action.dynamic_params)] end end end end
Version data entries
6 entries across 6 versions & 1 rubygems