ghazel-pacecar 1.2.0.2 → 1.2.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/pacecar/search.rb +2 -1
  2. metadata +17 -4
@@ -15,7 +15,8 @@ module Pacecar
15
15
  def define_search_scopes
16
16
  safe_column_names.each do |name|
17
17
  named_scope "#{name}_equals".to_sym, lambda { |query|
18
- { :conditions => { table_name => { name => query } } }
18
+ condition = attribute_condition("#{quoted_table_name}.#{connection.quote_column_name(name)}", query)
19
+ { :conditions => [condition, query] }
19
20
  }
20
21
  end
21
22
  text_and_string_column_names.each do |name|
metadata CHANGED
@@ -1,7 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ghazel-pacecar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.2
4
+ hash: 73
5
+ prerelease:
6
+ segments:
7
+ - 1
8
+ - 2
9
+ - 0
10
+ - 3
11
+ version: 1.2.0.3
5
12
  platform: ruby
6
13
  authors:
7
14
  - Matt Jankowski
@@ -48,21 +55,27 @@ rdoc_options: []
48
55
  require_paths:
49
56
  - lib
50
57
  required_ruby_version: !ruby/object:Gem::Requirement
58
+ none: false
51
59
  requirements:
52
60
  - - ">="
53
61
  - !ruby/object:Gem::Version
62
+ hash: 3
63
+ segments:
64
+ - 0
54
65
  version: "0"
55
- version:
56
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
+ none: false
57
68
  requirements:
58
69
  - - ">="
59
70
  - !ruby/object:Gem::Version
71
+ hash: 3
72
+ segments:
73
+ - 0
60
74
  version: "0"
61
- version:
62
75
  requirements: []
63
76
 
64
77
  rubyforge_project:
65
- rubygems_version: 1.3.5
78
+ rubygems_version: 1.4.2
66
79
  signing_key:
67
80
  specification_version: 3
68
81
  summary: Pacecar adds named_scope methods to ActiveRecord classes via database column introspection.