Skip to content

Commit

Permalink
include Benchmarkable into SolrHelper, and use the instance-level #be…
Browse files Browse the repository at this point in the history
…nchmark instead; fixes #791
  • Loading branch information
cbeer committed Feb 19, 2014
1 parent 947aac4 commit e5f4d79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/blacklight/solr_helper.rb
Expand Up @@ -45,10 +45,10 @@
# end

module Blacklight::SolrHelper
extend ActiveSupport::Benchmarkable
extend ActiveSupport::Concern
include Blacklight::SearchFields
include Blacklight::Facet
include ActiveSupport::Benchmarkable

included do
if self.respond_to?(:helper_method)
Expand Down Expand Up @@ -83,7 +83,7 @@ def force_to_utf8(value)
def find(*args)
# In later versions of Rails, the #benchmark method can do timing
# better for us.
Blacklight::SolrHelper.benchmark("Solr fetch", level: :debug) do
benchmark("Solr fetch", level: :debug) do
solr_params = args.extract_options!
path = args.first || blacklight_config.solr_path
solr_params[:qt] ||= blacklight_config.qt
Expand Down

0 comments on commit e5f4d79

Please sign in to comment.