Sha256: 2ffd4d34cf5f5b60eaa42626e08629e93e69a434e81856d7bed1e884890c4334
Contents?: true
Size: 1.03 KB
Versions: 3
Compression:
Stored size: 1.03 KB
Contents
# BlacklightOaiProvider module BlacklightOaiProvider autoload :ControllerExtension, 'blacklight_oai_provider/controller_extension' autoload :SolrDocumentExtension, 'blacklight_oai_provider/solr_document_extension' autoload :SolrDocumentProvider, 'blacklight_oai_provider/solr_document_provider' autoload :SolrDocumentWrapper, 'blacklight_oai_provider/solr_document_wrapper' autoload :RouteSets, 'blacklight_oai_provider/route_sets' require 'oai' require 'blacklight_oai_provider/version' require 'blacklight_oai_provider/engine' @omit_inject = {} def self.omit_inject=(value) value = Hash.new(true) if value == true @omit_inject = value end def self.omit_inject ; @omit_inject ; end def self.inject! unless BlacklightRangeLimit.omit_inject[:routes] Blacklight::Routes.send(:include, BlacklightOaiProvider::RouteSets) end end # Add element to array only if it's not already there def self.safe_arr_add(array, element) array << element unless array.include?(element) end end
Version data entries
3 entries across 3 versions & 1 rubygems