Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change search_config to searcher

  • Loading branch information...
commit 34f3b3750445c2845f04c4ee5cd6f906b24245cb 1 parent bbe63e8
@radar authored
View
2  lib/searcher/class_methods.rb
@@ -2,7 +2,7 @@
module Searcher
module ClassMethods
- def search_config(&block)
+ def searcher(&block)
@config ||= Searcher::Config.new.instance_exec(&block)
end
View
BIN  searcher.sqlite3
Binary file not shown
View
2  spec/fixtures/models.rb
@@ -2,7 +2,7 @@ class Ticket < ActiveRecord::Base
has_and_belongs_to_many :tags
belongs_to :state
- search_config do
+ searcher do
default :description
external :tag, :from => :tags, :field => "name"
external :state, :from => :state, :field => "name"
Please sign in to comment.
Something went wrong with that request. Please try again.