lib/glossarist/concept.rb in glossarist-new-1.0.2 vs lib/glossarist/concept.rb in glossarist-new-1.0.3

- old
+ new

@@ -120,10 +120,10 @@ concept.related = hash.dig("related") concept.definition = hash.dig("definition") hash.values .grep(Hash) - .map { |subhash| LocalizedConcept.from_h(subhash) rescue nil } + .map { |subhash| Config.class_for(:localized_concept).from_h(subhash) rescue nil } .compact concept.related = hash.dig("related") || [] end end