searchlogic 2.4.4 → 2.4.5
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -189,7 +189,7 @@ module Searchlogic
|
|
189
189
|
when Range
|
190
190
|
Range.new(type_cast(value.first, type), type_cast(value.last, type))
|
191
191
|
else
|
192
|
-
if ignore_value?(value)
|
192
|
+
if setting_mass_conditions? && ignore_value?(value)
|
193
193
|
value
|
194
194
|
else
|
195
195
|
# Let's leverage ActiveRecord's type casting, so that casting is consistent
|
data/searchlogic.gemspec
CHANGED
data/spec/search_spec.rb
CHANGED
@@ -224,6 +224,12 @@ describe "Search" do
|
|
224
224
|
search.id_nil.should == false
|
225
225
|
end
|
226
226
|
|
227
|
+
it "should be an Integer given ''" do
|
228
|
+
search = User.search
|
229
|
+
search.id_gt = ''
|
230
|
+
search.id_gt.should == 0
|
231
|
+
end
|
232
|
+
|
227
233
|
it "should be an Integer given 1" do
|
228
234
|
search = User.search
|
229
235
|
search.id_gt = 1
|