ghazel-pacecar 1.2.0.3 → 1.2.0.4

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.
Files changed (2) hide show
  1. data/lib/pacecar/search.rb +5 -0
  2. metadata +3 -3
@@ -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: 73
4
+ hash: 71
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
9
  - 0
10
- - 3
11
- version: 1.2.0.3
10
+ - 4
11
+ version: 1.2.0.4
12
12
  platform: ruby
13
13
  authors:
14
14
  - Matt Jankowski