lib/spotlight/engine.rb in blacklight-spotlight-3.4.4.1 vs lib/spotlight/engine.rb in blacklight-spotlight-3.5.0

- old
+ new

@@ -306,7 +306,12 @@ config.bulk_updates.csv_tags = 'Tag: %s' config.assign_default_roles_to_first_user = true config.exhibit_roles = %w[admin curator viewer] + + if ActiveRecord.respond_to?(:yaml_column_permitted_classes) || ActiveRecord::Base.respond_to?(:yaml_column_permitted_classes) + config.active_record.yaml_column_permitted_classes ||= [] + config.active_record.yaml_column_permitted_classes += [Symbol, ActiveSupport::HashWithIndifferentAccess] + end end end