Skip to content

Commit

Permalink
Use a HashWithIndifferentAccess to contain configuration data
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Sep 30, 2022
1 parent 35f06be commit 4a4f7dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/blacklight/configuration/fields.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module Fields
def define_field_access(key, base_class_name = nil, class: nil)
key = key.to_s if respond_to? :to_s

default_values[key.pluralize.to_sym] = ActiveSupport::OrderedHash.new
default_values[key.pluralize.to_sym] = ActiveSupport::HashWithIndifferentAccess.new

@field_type_for_class ||= {}
@field_type_for_class[key] = binding.local_variable_get(:class) || base_class_name
Expand Down

0 comments on commit 4a4f7dd

Please sign in to comment.