search_fu 0.0.3 → 0.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.
@@ -9,7 +9,7 @@ module SearchFu
9
9
 
10
10
  module ClassMethods
11
11
  def search(hash)
12
- rtnval = self.scopes[:search_fu_before] ? self.search_fu_before : self.where("1=1")
12
+ rtnval = respond_to?(:search_fu_before) ? search_fu_before : where("1=1")
13
13
  return rtnval unless hash
14
14
  @rel = [%q(where("1=1"))]
15
15
  hash.each do |k,v|
@@ -1,3 +1,4 @@
1
1
  module SearchFu
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
4
+
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: search_fu
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Tan Kwang How
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-05 00:00:00 Z
13
+ date: 2011-06-07 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  requirements: []
92
92
 
93
93
  rubyforge_project: search_fu
94
- rubygems_version: 1.8.0
94
+ rubygems_version: 1.8.5
95
95
  signing_key:
96
96
  specification_version: 3
97
97
  summary: Combine query in views