Sha256: cbe64ca6b8d976560fcc44ed4169868d2d7d00f78f9236d5b602dab48531eefc

Contents?: true

Size: 631 Bytes

Versions: 8

Compression:

Stored size: 631 Bytes

Contents

require 'spotlight/engine'
require 'spotlight/dor/resources'

module Spotlight::Dor::Resources
  # :nodoc:
  class Engine < ::Rails::Engine
    config.parallel_options = { in_threads: 1 }
    config.base_stacks_url = 'https://stacks.stanford.edu'
    config.stacks_file_url = "#{config.base_stacks_url}/file"
    config.stacks_iiif_url = "#{config.base_stacks_url}/image/iiif"

    initializer 'spotlight.resources.dor_harvester.initialize' do
      Spotlight::Engine.config.external_resources_partials ||= []
      Spotlight::Engine.config.external_resources_partials << 'spotlight/resources/dor_harvester/form'
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
spotlight-dor-resources-2.0.1 lib/spotlight/dor/resources/engine.rb
spotlight-dor-resources-2.0.0 lib/spotlight/dor/resources/engine.rb
spotlight-dor-resources-1.1.0 lib/spotlight/dor/resources/engine.rb
spotlight-dor-resources-1.0.1 lib/spotlight/dor/resources/engine.rb
spotlight-dor-resources-1.0.0 lib/spotlight/dor/resources/engine.rb
spotlight-dor-resources-0.6.2 lib/spotlight/dor/resources/engine.rb
spotlight-dor-resources-0.6.1 lib/spotlight/dor/resources/engine.rb
spotlight-dor-resources-0.6.0 lib/spotlight/dor/resources/engine.rb