with deliverable_type == Request. Then build_deliverable passes these arguments directly to:
deliverable_type.new(type, payload, opts)
but the problem is that Request has an initialize function that looks like:
initialize(type, payload, size=nil, opts={})
so the options that were passed in to the original request get passed in as the 'size' parameter, which obviously doesn't work. This causes any :selector or :target to be ignored for example.
In our environment, this was causing problems when we passed the :target option because it was being ignored. Changing the build_deliverable function to make the call:
In mapper.rb the request function looks like:
and then passes the first 3 arguments in the same order to:
with deliverable_type == Request. Then build_deliverable passes these arguments directly to:
but the problem is that Request has an initialize function that looks like:
so the options that were passed in to the original request get passed in as the 'size' parameter, which obviously doesn't work. This causes any :selector or :target to be ignored for example.
In our environment, this was causing problems when we passed the :target option because it was being ignored. Changing the build_deliverable function to make the call:
fixed the issue.