Sha256: 3e75131625176df4c5fece17d8fc3a8f869daab80c087255934cc0de68e55a15

Contents?: true

Size: 866 Bytes

Versions: 26

Compression:

Stored size: 866 Bytes

Contents

module ActiveFedora
  class Railtie < Rails::Railtie
    config.app_middleware.insert_after ::ActionDispatch::Callbacks,
                                       ActiveFedora::LdpCache
    config.action_dispatch.rescue_responses.merge!(
      "ActiveFedora::ObjectNotFoundError" => :not_found
    )

    config.eager_load_namespaces << ActiveFedora

    initializer 'active_fedora.autoload', before: :set_autoload_paths do |app|
      app.config.autoload_paths << 'app/models/datastreams'
    end

    initializer "active_fedora.logger" do
      ActiveSupport.on_load(:active_fedora) do
        self.logger = ::Rails.logger if logger.is_a? NullLogger
      end
    end

    generators do
      require(
        'generators/active_fedora/config/config_generator'
      )
      require(
        'generators/active_fedora/model/model_generator'
      )
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
active-fedora-15.0.1 lib/active_fedora/railtie.rb
active-fedora-15.0.0 lib/active_fedora/railtie.rb
active-fedora-14.0.1 lib/active_fedora/railtie.rb
active-fedora-14.0.0 lib/active_fedora/railtie.rb
active-fedora-13.3.0 lib/active_fedora/railtie.rb
active-fedora-12.2.4 lib/active_fedora/railtie.rb
active-fedora-13.2.7 lib/active_fedora/railtie.rb
active-fedora-13.2.5 lib/active_fedora/railtie.rb
active-fedora-13.2.4 lib/active_fedora/railtie.rb
active-fedora-12.2.3 lib/active_fedora/railtie.rb
active-fedora-13.2.3 lib/active_fedora/railtie.rb
active-fedora-13.2.2 lib/active_fedora/railtie.rb
active-fedora-13.2.0 lib/active_fedora/railtie.rb
active-fedora-13.1.3 lib/active_fedora/railtie.rb
active-fedora-12.2.2 lib/active_fedora/railtie.rb
active-fedora-12.2.1 lib/active_fedora/railtie.rb
active-fedora-12.0.3 lib/active_fedora/railtie.rb
active-fedora-13.1.2 lib/active_fedora/railtie.rb
active-fedora-13.1.1 lib/active_fedora/railtie.rb
active-fedora-13.1.0 lib/active_fedora/railtie.rb