app/models/hierarchy/concept_merger.rb
# This is not the greatest way to check accuracy, but catches most problem
# scenarios and is faster than always fixing:
This is not the greatest way to check accuracy, but catches most problem
scenarios and is faster than always fixing.
This is not the greatest way to check accuracy but catches most problem scenarios and is faster than always fixing .
def fix_entry_counts_needed?
      Hierarchy.where(hierarchy_entries_count: 0).find_each do |hier|
        return true if hier.hierarchy_entries.count > 0
      end
      false
    end
def fix_entry_counts_needed? Hierarchy . where ( hierarchy_entries_count : 0 ) . find_each do | hier | return true if hier . hierarchy_entries . count > 0 end false end
This is not the greatest way to check accuracy, but catches most problem
scenarios and is faster than always fixing:
This is not the greatest way to check accuracy but catches most problem scenarios and is faster than always fixing :