lib/pg_search/document.rb in pg_search-0.7.8 vs lib/pg_search/document.rb in pg_search-0.7.9

- old
+ new

@@ -16,13 +16,13 @@ super || Logger.new(STDERR) end pg_search_scope :search, lambda { |*args| options = if PgSearch.multisearch_options.respond_to?(:call) - PgSearch.multisearch_options.call(*args) - else - {:query => args.first}.merge(PgSearch.multisearch_options) - end + PgSearch.multisearch_options.call(*args) + else + {:query => args.first}.merge(PgSearch.multisearch_options) + end {:against => :content}.merge(options) } private