From 96917f9de39c7aacfec722ba8a2f9991124c1516 Mon Sep 17 00:00:00 2001 From: Jeremy Friesen Date: Thu, 24 Sep 2015 08:57:25 -0500 Subject: [PATCH] Moving a method to protected This method was not called from outside of the object. This reduces the outward facing API of the object. --- lib/active_fedora/indexing_service.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/active_fedora/indexing_service.rb b/lib/active_fedora/indexing_service.rb index ba0d99fa6..7931c55b5 100644 --- a/lib/active_fedora/indexing_service.rb +++ b/lib/active_fedora/indexing_service.rb @@ -14,10 +14,6 @@ def self.profile_solr_name @profile_solr_name ||= ActiveFedora::SolrQueryBuilder.solr_name("object_profile", :displayable) end - def profile_service - ProfileIndexingService - end - def rdf_service RDF::IndexingService end @@ -43,6 +39,10 @@ def generate_solr_document protected + def profile_service + ProfileIndexingService + end + def c_time c_time = object.create_date.present? ? object.create_date : DateTime.now c_time = DateTime.parse(c_time) unless c_time.is_a?(DateTime)