Sha256: 3a17ad11bafb491667ec3ee6104d57bf8a68211d0c67c1475c86f84eb9f05b9c

Contents?: true

Size: 1.26 KB

Versions: 1

Compression:

Stored size: 1.26 KB

Contents

module Sufia
  module Models
    def self.config(&block)
      @@config ||= Engine::Configuration.new

      yield @@config if block

      return @@config
    end

    class Engine < ::Rails::Engine
      config.autoload_paths += %W(
        #{config.root}/lib/sufia/models/jobs
      )
      initializer "patches" do
        require 'sufia/models/active_fedora/redis'
        require 'sufia/models/active_record/redis'
        require 'sufia/models/active_support/core_ext/marshal'
      end

      initializer 'requires' do
        require 'sufia/models/model_methods'
        require 'sufia/models/noid'
        require 'sufia/models/file_content'
        require 'sufia/models/file_content/extract_metadata'
        require 'sufia/models/file_content/versions'
        require 'sufia/models/generic_file/actions'
        require 'sufia/models/generic_file/audit'
        require 'sufia/models/generic_file/characterization'
        require 'sufia/models/generic_file/export'
        require 'sufia/models/generic_file/permissions'
        require 'sufia/models/generic_file/thumbnail'
        require 'sufia/models/generic_file'
        require 'sufia/models/user'
        require 'sufia/models/id_service'
        require 'sufia/models/solr_document_behavior'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sufia-models-0.1.0 lib/sufia/models/engine.rb