Sha256: 69dbe21242bb040a57dac5e39d1f7c5866cd4047b7af1c161a93799bcd9477c0

Contents?: true

Size: 935 Bytes

Versions: 6

Compression:

Stored size: 935 Bytes

Contents

# Load blacklight which will give curation_concerns views a higher preference than those in blacklight
require 'blacklight'
require 'curation_concerns/models'
require 'hydra-collections'
require 'hydra-editor'
require 'jquery-ui-rails'
require 'qa'
require 'sprockets/es6'

module CurationConcerns
  # Ensures that routes to curation_concerns are prefixed with `curation_concerns_`
  # def self.use_relative_model_naming?
  #   false
  # end

  class Engine < ::Rails::Engine
    isolate_namespace CurationConcerns
    require 'breadcrumbs_on_rails'

    config.autoload_paths += %W(
      #{config.root}/lib
    )

    initializer 'curation_concerns.initialize' do
      require 'curation_concerns/rails/routes'
    end

    initializer 'curation_concerns.assets.precompile' do |app|
      app.config.assets.paths << config.root.join('app', 'assets', 'images')

      app.config.assets.precompile += %w(*.png *.gif)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
curation_concerns-0.12.0.pre1 lib/curation_concerns/engine.rb
curation_concerns-0.11.0 lib/curation_concerns/engine.rb
curation_concerns-0.11.0.rc1 lib/curation_concerns/engine.rb
curation_concerns-0.10.0 lib/curation_concerns/engine.rb
curation_concerns-0.9.0 lib/curation_concerns/engine.rb
curation_concerns-0.8.0 lib/curation_concerns/engine.rb