ghazel-pacecar 1.2.0.3 → 1.2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pacecar/search.rb +5 -0
- metadata +3 -3
data/lib/pacecar/search.rb
CHANGED
@@ -18,6 +18,11 @@ module Pacecar
|
|
18
18
|
condition = attribute_condition("#{quoted_table_name}.#{connection.quote_column_name(name)}", query)
|
19
19
|
{ :conditions => [condition, query] }
|
20
20
|
}
|
21
|
+
named_scope "#{name}_not_equals".to_sym, lambda { |query|
|
22
|
+
condition = attribute_condition("#{quoted_table_name}.#{connection.quote_column_name(name)}", query)
|
23
|
+
condition = "NOT (#{condition})"
|
24
|
+
{ :conditions => [condition, query] }
|
25
|
+
}
|
21
26
|
end
|
22
27
|
text_and_string_column_names.each do |name|
|
23
28
|
named_scope "#{name}_matches".to_sym, lambda { |query|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ghazel-pacecar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 71
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
version: 1.2.0.
|
10
|
+
- 4
|
11
|
+
version: 1.2.0.4
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Matt Jankowski
|