webapp/app/models/nlp/package.rb
# Used to disable nlp sync if necessary via
# Nlp::Package.sync_active = false
Used to disable nlp sync if necessary via
Nlp::Package.sync_active = false
Used to disable nlp sync if necessary via Nlp :: Package . sync_active = false
def write_interpretation(encoder)
      @agent.interpretations.order(position: :desc).each do |interpretation|
        cache_key = ['pkg', VERSION, @agent.slug, 'interpretation'.freeze, interpretation.id, (interpretation.updated_at.to_f * 1000).to_i].join('/')
        build_internals_list_nodes(interpretation, encoder, cache_key)
        build_interpretation(interpretation, encoder, cache_key)
      end
    end
def write_interpretation ( encoder ) @agent . interpretations . order ( position : :desc ) . each do | interpretation | cache_key = [ 'pkg' , VERSION , @agent . slug , 'interpretation' . freeze , interpretation . id , ( interpretation . updated_at . to_f * 1000 ) . to_i ] . join ( '/' ) build_internals_list_nodes ( interpretation , encoder , cache_key ) build_interpretation ( interpretation , encoder , cache_key ) end end
Used to disable nlp sync if necessary via
Nlp::Package.sync_active = false
Used to disable nlp sync if necessary via Nlp :: Package . sync_active = false
encoder
<not_specific>