Skip to content

Commit

Permalink
Only add add_range_limit_params where specified
Browse files Browse the repository at this point in the history
don't add it to all the subclasses of SearchBuilder.
  • Loading branch information
jcoyne committed Jan 19, 2016
1 parent 2ce89f7 commit 1dd96c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/blacklight_range_limit/range_limit_builder.rb
Expand Up @@ -6,7 +6,8 @@ module RangeLimitBuilder
include BlacklightRangeLimit::SegmentCalculation

included do
default_processor_chain << :add_range_limit_params
# Use setters so not to propagate changes
self.default_processor_chain += [:add_range_limit_params]
end

# Method added to to fetch proper things for date ranges.
Expand Down Expand Up @@ -83,4 +84,4 @@ def fetch_specific_range_limit(solr_params)
end

end
end
end

0 comments on commit 1dd96c5

Please sign in to comment.