Skip to content

Commit

Permalink
Allow component configuration to bypass the deep dup'ing
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Jun 3, 2020
1 parent c471946 commit 5134f56
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/blacklight/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,10 @@ def deep_copy
# Don't copy if nil, so as not to prematurely autoload default classes
copy.send("#{klass}=", send(klass)) unless fetch(klass.to_sym, nil).nil?
end

copy.facet_fields.select { |k, v| v.component }.each do |key, field|
field.component = facet_fields[key].component
end
end
end

Expand Down

0 comments on commit 5134f56

Please sign in to comment.