lib/iqvoc/maker.rb in iqvoc-3.5.6 vs lib/iqvoc/maker.rb in iqvoc-3.5.7

- old
+ new

@@ -120,10 +120,11 @@ "language" => Iqvoc::Concept.pref_labeling_languages.first, "published_at" => 2.days.ago } attributes = defaults.merge(attributes) - label = Iqvoc::XLLabel.base_class.create!(attributes) + klass = Iqvoc::XLLabel rescue Iqvoc::Label # FIXME: breaks encapsulation (hard-coded iqvoc_skosxl dependency) + label = klass.base_class.create!(attributes) inflectionals.each { |inf| label.inflectionals.create!(:value => inf) }