lib/finapps/utils/query_builder.rb in finapps-4.0.12 vs lib/finapps/utils/query_builder.rb in finapps-4.0.14
- old
+ new
@@ -14,10 +14,10 @@
private
def query_join(root_url, params_array)
query_string = params_array.compact.join('&')
- !query_string.empty? ? [root_url, query_string].join('?') : nil
+ [root_url, query_string].reject(&:empty?).join('?')
end
def build_filter(_params)
# stub, to be overwritten by classes that include this module
{}