From 6249b057afe62dae6f83149a03ae1f32946985e6 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Sun, 29 May 2016 11:45:46 -0400 Subject: [PATCH] Update query_patch.rb --- lib/query_patch.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/query_patch.rb b/lib/query_patch.rb index d871992..c568e38 100644 --- a/lib/query_patch.rb +++ b/lib/query_patch.rb @@ -51,9 +51,12 @@ module QueryPatch # :order => @available_filters.size + 1}, #} - qbo_filters = { "customer_id" => { :type => :list_optional, :order => @available_filters.size + 1}, - :values => Customer.find(:all, :order => 'name ASC').collect { |c| [c.name, c.id.to_s]} - }} + qbo_filters = { + "customer_id" => { :type => :list_optional, + :order => @available_filters.size + 1, + :values => Customer.find(:all, :order => 'name ASC').collect { |c| [c.name, c.id.to_s]} + } + } @available_filters.merge!(qbo_filters) end