Open vemonet opened 9 years ago
The method synchronize_groups_to_slices fails if there is already an existing slice with the same acronym than one of the group It can easily be fixed by loading the attributes when finding a slice at line 28: https://github.com/ncbo/ontologies_linked_data/blob/master/lib/ontologies_linked_data/models/slice.rb slice = self.find(g.acronym).include(LinkedData::Models::Slice.attributes(:all)).first
slice = self.find(g.acronym).include(LinkedData::Models::Slice.attributes(:all)).first
Hi Vincent, thanks for this. Can you submit a pull request for your recommended change? That'll give you credit and save us time.
The method synchronize_groups_to_slices fails if there is already an existing slice with the same acronym than one of the group It can easily be fixed by loading the attributes when finding a slice at line 28: https://github.com/ncbo/ontologies_linked_data/blob/master/lib/ontologies_linked_data/models/slice.rb
slice = self.find(g.acronym).include(LinkedData::Models::Slice.attributes(:all)).first