lib/nuva/repositories/valence_repository.rb in nuva-0.3.0 vs lib/nuva/repositories/valence_repository.rb in nuva-0.3.1
- old
+ new
@@ -3,10 +3,10 @@
module Nuva
class ValenceRepository < Repository
def initialize(data)
super data
@ancestor_ids_by_id = {}
- @data_by_symbol_id.each_value do |valence|
+ @all.each 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