Skip to content
Browse files

Change search_config to searcher

  • Loading branch information...
1 parent bbe63e8 commit 34f3b3750445c2845f04c4ee5cd6f906b24245cb @radar committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/searcher/class_methods.rb
  2. BIN searcher.sqlite3
  3. +1 −1 spec/fixtures/models.rb
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"

0 comments on commit 34f3b37

Please sign in to comment.
Something went wrong with that request. Please try again.