lib/picky/adapters/rack/search.rb in picky-3.0.0.pre1 vs lib/picky/adapters/rack/search.rb in picky-3.0.0.pre2
- old
+ new
@@ -5,11 +5,11 @@
#
# It looks at what is given to it and generate an appropriate
# adapter for it.
#
# For example, if you give it a query, it will extract the query param etc.
- # and call search_with_text on it if it is called by Rack.
+ # and call search on it if it is called by Rack.
#
module Rack
class Search < Base
@@ -33,12 +33,12 @@
content_type = options[:content_type] || @defaults[:content_type]
lambda do |env|
params = ::Rack::Request.new(env).params
- results = query.search_with_text *extracted(params)
+ results = query.search *extracted(params)
- PickyLog.log results.to_log(params[query_key])
+ Picky.logger && Picky.logger.info(results.to_log(params[query_key]))
respond_with results.to_response, content_type
end
end
\ No newline at end of file