From 489d6a50a7fa08be411b2ca5a6a6c7ee0cf11155 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Sat, 6 Jul 2019 12:36:16 +0200 Subject: [PATCH] fix syntax --- app/models/concerns/indexable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/concerns/indexable.rb b/app/models/concerns/indexable.rb index 0dee6a17b..6c2ac130f 100644 --- a/app/models/concerns/indexable.rb +++ b/app/models/concerns/indexable.rb @@ -9,7 +9,7 @@ module Indexable IndexJob.perform_later(self) if self.class.name == "Doi" update_column(:indexed, Time.zone.now) - send_import_message(self.to_jsonapi) if aasm_state == "findable" unless (Rails.env.test? || %w(crossref medra kisti jalc op).include?(doi.client.symbol.downcase.split(".").first)) + send_import_message(self.to_jsonapi) if aasm_state == "findable" unless (Rails.env.test? || %w(crossref medra kisti jalc op).include?(client.symbol.downcase.split(".").first)) end end