app/models/spotlight/blacklight_configuration.rb in blacklight-spotlight-3.6.0.beta5 vs app/models/spotlight/blacklight_configuration.rb in blacklight-spotlight-3.6.0.beta6
- old
+ new
@@ -225,11 +225,11 @@
end
config
end
end
- # rubocop:enable Metrics/MethodLength, Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity
+ # rubocop:enable Metrics/MethodLength, Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity, Metrics/AbcSize
def custom_index_fields(blacklight_config)
Hash[exhibit.custom_fields.reject(&:new_record?).map do |custom_field|
original_config = blacklight_config.index_fields[custom_field.field] || {}
field = Blacklight::Configuration::IndexField.new original_config.merge(
@@ -404,6 +404,7 @@
def value_to_boolean(v)
ActiveModel::Type::Boolean.new.cast v
end
end
+ # rubocop:enable Metrics/ClassLength
end