lib/endeca/document.rb in primedia-endeca-0.9.10 vs lib/endeca/document.rb in primedia-endeca-0.9.11
- old
+ new
@@ -103,14 +103,18 @@
end
private
def self.request(query_options)
+ Endeca::Request.perform(get_path, parse_query_options(query_options))
+ end
+
+ def self.parse_query_options(query_options)
if query_options.respond_to?(:merge)
new_query_options = get_default_params.merge(query_options)
query_options = transform_query_options(new_query_options)
+ else
+ query_options
end
-
- Endeca::Request.perform(get_path, query_options)
end
end
end