lib/term_bootstrapper.rb
# NOTE: This must be updated if you intend to pick up new fields from EolTerms
This must be updated if you intend to pick up new fields from EolTerms
This must be updated if you intend to pick up new fields from EolTerms
def raw_terms_from_neo4j
    return @raw_terms_from_neo4j unless @raw_terms_from_neo4j.nil?
    @raw_terms_from_neo4j = []
    page = 0
    while data = TraitBank::Term.full_glossary(page += 1, 1000, include_hidden: true)
      break if data.empty?
      @raw_terms_from_neo4j << data 
    end
    @raw_terms_from_neo4j.flatten! 
  end
def raw_terms_from_neo4j return @raw_terms_from_neo4j unless @raw_terms_from_neo4j . nil? @raw_terms_from_neo4j = [ ] page = 0 while data = TraitBank :: Term . full_glossary ( page += 1 , 1000 , include_hidden : true ) break if data . empty? @raw_terms_from_neo4j << data end @raw_terms_from_neo4j . flatten! end
NOTE: This must be updated if you intend to pick up new fields from EolTerms
NOTE : This must be updated if you intend to pick up new fields from EolTerms
# Uses less memory than #+= # Beacuse we used #<<