Sha256: aa491345e518d6a562fbaf5ce212ed9e90a5329ea4d65fdeaf1adb0d76db32a5

Contents?: true

Size: 1.12 KB

Versions: 4

Compression:

Stored size: 1.12 KB

Contents

module CurationConcerns
  module Models
    class Engine < ::Rails::Engine
      config.autoload_paths += %W(
        #{config.root}/app/actors/concerns
        #{config.root}/lib/curation_concerns
        #{config.root}/app/models/datastreams
      )

      initializer 'requires' do
        require 'active_fedora/noid'
        require 'curation_concerns/noid'
        require 'curation_concerns/permissions'
        require 'curation_concerns/lockable'
      end

      initializer 'configure' do
        CurationConcerns.config.tap do |c|
          Hydra::Derivatives.ffmpeg_path    = c.ffmpeg_path
          Hydra::Derivatives.temp_file_base = c.temp_file_base
          Hydra::Derivatives.fits_path      = c.fits_path
          Hydra::Derivatives.enable_ffmpeg  = c.enable_ffmpeg

          ActiveFedora::Base.translate_uri_to_id = ActiveFedora::Noid.config.translate_uri_to_id
          ActiveFedora::Base.translate_id_to_uri = ActiveFedora::Noid.config.translate_id_to_uri
          ActiveFedora::Noid.config.template = c.noid_template
          ActiveFedora::Noid.config.statefile = c.minter_statefile
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
curation_concerns-models-0.8.0 lib/curation_concerns/models/engine.rb
curation_concerns-models-0.7.0 lib/curation_concerns/models/engine.rb
curation_concerns-models-0.6.0 lib/curation_concerns/models/engine.rb
curation_concerns-models-0.5.0 lib/curation_concerns/models/engine.rb