search_scope 0.1.3 → 0.1.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.
- data/README +1 -1
- data/Rakefile +1 -1
- data/lib/search_scope.rb +0 -1
- data/search_scope.gemspec +1 -1
- metadata +1 -1
data/README
CHANGED
@@ -27,7 +27,7 @@ cd search_scope_test
|
|
27
27
|
rake db:migrate
|
28
28
|
|
29
29
|
#add to environment.rb (below the other config.gem examples)
|
30
|
-
config.gem 'search_scope', :version => '0.1.
|
30
|
+
config.gem 'search_scope', :version => '>= 0.1.4'
|
31
31
|
|
32
32
|
#install the gem (from the command line)
|
33
33
|
rake gems:install
|
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('search_scope', '0.1.
|
5
|
+
Echoe.new('search_scope', '0.1.4') do |p|
|
6
6
|
p.description = "Simplify searching a model by defining custom named_scopes."
|
7
7
|
p.project = 'search-scope'
|
8
8
|
p.url = "http://rubyforge.org/projects/search-scope"
|
data/lib/search_scope.rb
CHANGED
@@ -19,7 +19,6 @@ module SearchScope
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def search_scope(name, options = {}, &block)
|
22
|
-
puts "***search_scope: #{name.inspect} - #{options.inspect}"
|
23
22
|
#default the search to a LIKE search if nothing is given
|
24
23
|
if options.blank?
|
25
24
|
options = lambda { |term| { :conditions => ["#{table_name}.#{name} LIKE ?", "%#{term}%"] } }
|
data/search_scope.gemspec
CHANGED