ncbo / ontologies_linked_data

Models and serializers for ontologies and related artifacts backed by 4store
Other
18 stars 8 forks source link

synchronize_groups_to_slices fail #60

Open vemonet opened 9 years ago

vemonet commented 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

graybeal commented 9 years ago

Hi Vincent, thanks for this. Can you submit a pull request for your recommended change? That'll give you credit and save us time.