Sha256: c2b43f0169faeff0117aa9e17297ea417a91f673b67616efbd20d30524c82b29

Contents?: true

Size: 1.08 KB

Versions: 3

Compression:

Stored size: 1.08 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'
      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

3 entries across 3 versions & 1 rubygems

Version Path
curation_concerns-models-0.4.0 lib/curation_concerns/models/engine.rb
curation_concerns-models-0.3.0 lib/curation_concerns/models/engine.rb
curation_concerns-models-0.2.0 lib/curation_concerns/models/engine.rb