From 99b4c6599b641dab6fee3027fc242f7eaf142aef Mon Sep 17 00:00:00 2001 From: Cory Lown Date: Tue, 27 Aug 2019 07:44:06 -0400 Subject: [PATCH] Fix rl method bug. --- app/models/concerns/solr_document_behavior.rb | 4 ++++ app/models/solr_document.rb | 8 ++++---- lib/dul_argon_skin/version.rb | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/app/models/concerns/solr_document_behavior.rb b/app/models/concerns/solr_document_behavior.rb index 22f9ae6..38066de 100644 --- a/app/models/concerns/solr_document_behavior.rb +++ b/app/models/concerns/solr_document_behavior.rb @@ -22,4 +22,8 @@ module SolrDocumentBehavior send(:include, SmsFieldMapping) send(:include, Syndetics) end + + def rubenstein_record? + holdings.key?('SCL') + end end diff --git a/app/models/solr_document.rb b/app/models/solr_document.rb index 5d82a42..931b994 100644 --- a/app/models/solr_document.rb +++ b/app/models/solr_document.rb @@ -1,9 +1,9 @@ # frozen_string_literal: true +# IMPORTANT: Do not put methods here that are also needed +# in the TRLN Scope. Shared SolrDocument methods +# should go in: +# app/models/concerns/solr_document_behavior.rb. class SolrDocument include SolrDocumentBehavior - - def rubenstein_record? - holdings.key?('SCL') - end end diff --git a/lib/dul_argon_skin/version.rb b/lib/dul_argon_skin/version.rb index 90f2759..ffcb650 100644 --- a/lib/dul_argon_skin/version.rb +++ b/lib/dul_argon_skin/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module DulArgonSkin - VERSION = '1.5.4' + VERSION = '1.5.5' end