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 destroy
    return if Rails.env.test?
    unless Nlp::Package.sync_active
      Rails.logger.info "  Skipping destroy of package #{@agent.id} to NLP because sync is deactivated"
      return
    end
    notify(:delete)
  end
def destroy return if Rails . env . test? unless Nlp :: Package . sync_active Rails . logger . info "  Skipping destroy of package #{@agent.id} to NLP because sync is deactivated" return end notify ( :delete ) 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