searchlogic 2.4.6 → 2.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION.yml +1 -1
- data/lib/searchlogic/search.rb +1 -1
- data/searchlogic.gemspec +1 -1
- data/spec/search_spec.rb +6 -0
- metadata +1 -1
data/VERSION.yml
CHANGED
data/lib/searchlogic/search.rb
CHANGED
|
@@ -126,7 +126,7 @@ module Searchlogic
|
|
|
126
126
|
|
|
127
127
|
# This is here as a hook to allow people to modify the order in which the conditions are called, for whatever reason.
|
|
128
128
|
def conditions_array
|
|
129
|
-
conditions.to_a
|
|
129
|
+
@conditions.to_a
|
|
130
130
|
end
|
|
131
131
|
|
|
132
132
|
def normalize_scope_name(scope_name)
|
data/searchlogic.gemspec
CHANGED
data/spec/search_spec.rb
CHANGED
|
@@ -380,6 +380,12 @@ describe "Search" do
|
|
|
380
380
|
s.created_at_after = Time.now
|
|
381
381
|
lambda { s.count }.should_not raise_error
|
|
382
382
|
end
|
|
383
|
+
|
|
384
|
+
it "should not include blank values" do
|
|
385
|
+
s = User.search
|
|
386
|
+
s.conditions = {"id_equals" => ""}
|
|
387
|
+
s.proxy_options.should == {}
|
|
388
|
+
end
|
|
383
389
|
end
|
|
384
390
|
|
|
385
391
|
context "method delegation" do
|