lib/wcc/media/client.rb in wcc-media-client-0.4.1 vs lib/wcc/media/client.rb in wcc-media-client-0.4.2
- old
+ new
@@ -79,10 +79,10 @@
end
def default_params
options.each_with_object({}) do |(k, v), h|
k = k.to_s
- h[k] = v if CONFIGURABLE_PARAMS.include?(k)
+ h[k] = v if !v.nil? && CONFIGURABLE_PARAMS.include?(k)
end
end
def apply_filters(filters, expected_filters)
defaults = default_filters(expected_filters) || {}