require "sufia/version"
require 'blacklight'
require 'blacklight_advanced_search'
require 'blacklight/gallery'
require 'hydra/head'
require 'hydra-batch-edit'
require 'hydra-editor'
require 'browse-everything'
require 'sufia/models'

require 'rails_autolink'
require 'font-awesome-rails'
require 'tinymce-rails'
require 'tinymce-rails-imageupload'

module Sufia
  extend ActiveSupport::Autoload

  class Engine < ::Rails::Engine
    engine_name 'sufia'
    # Breadcrumbs on rails must be required outside of an initializer or it doesn't get loaded.
    require 'breadcrumbs_on_rails'

    config.autoload_paths += %W(
      #{config.root}/app/controllers/concerns
      #{config.root}/app/models/concerns
      #{config.root}/app/models/datastreams
      #{Hydra::Engine.root}/app/models/concerns
    )

    config.assets.paths << config.root.join('vendor', 'assets', 'fonts')
    config.assets.precompile << %r(vjs\.(?:eot|ttf|woff)$)
  end
end

require "sufia/version"
require 'blacklight'
require 'blacklight_advanced_search'
require 'blacklight/gallery'
require 'hydra/head'
require 'hydra-batch-edit'
require 'hydra-editor'
require 'browse-everything'
require 'sufia/models'

require 'rails_autolink'
require 'font-awesome-rails'
require 'tinymce-rails'
require 'tinymce-rails-imageupload'

module Sufia
  extend ActiveSupport::Autoload

  class Engine < ::Rails::Engine
    engine_name 'sufia'
    # Breadcrumbs on rails must be required outside of an initializer or it doesn't get loaded.
    require 'breadcrumbs_on_rails'

    config.autoload_paths += %W(
      #{config.root}/app/controllers/concerns
      #{config.root}/app/models/concerns
      #{config.root}/app/models/datastreams
      #{Hydra::Engine.root}/app/models/concerns
    )

    config.assets.paths << config.root.join('vendor', 'assets', 'fonts')
    config.assets.precompile << %r(vjs\.(?:eot|ttf|woff)$)
    config.assets.precompile += %w( fontawesome-webfont.woff )
    config.assets.precompile += %w( fontawesome-webfont.ttf )
    config.assets.precompile += %w( fontawesome-webfont.svg )
    config.assets.precompile += %w( ZeroClipboard.swf )
  end
end

Make sure a few required assets are explicitly listed on the asset pipeline. This removes the runtime error that asks the developer to manually add them when running the application for the very first time.
Make sure a few required assets are explicitly listed on the asset pipeline. This removes the runtime error that asks the developer to manually add them when running the application for the very first time.
