lib/nuva/repositories/valence_repository.rb in nuva-0.2.1 vs lib/nuva/repositories/valence_repository.rb in nuva-0.3.0

- old
+ new

@@ -3,10 +3,10 @@ module Nuva class ValenceRepository < Repository def initialize(data) super data @ancestor_ids_by_id = {} - @data.each_value do |valence| + @data_by_symbol_id.each_value do |valence| # Build hash of ancestor IDs for valence @ancestor_ids_by_id[valence.id] = lookup_ancestors(valence).uniq end @ancestor_ids_by_id.freeze end