Sha256: 2a5d99a70c23597cd0e4f462aa8863233e82a184762d95bf0fc020e3f5363cb9
Contents?: true
Size: 846 Bytes
Versions: 6
Compression:
Stored size: 846 Bytes
Contents
require 'hydra' module HydraHead require 'hydra-head/engine' if defined?(Rails) require 'hydra-head/routes' # If you put this in your application's routes.rb, it will add the Hydra Head routes to the app. # The hydra:head generator puts this in routes.rb for you by default. # See {HydraHead::Routes} for information about how to modify which routes are generated. # @example # # in config/routes.rb # MyAppName::Application.routes.draw do # Blacklight.add_routes(self) # HydraHead.add_routes(self) # end def self.add_routes(router, options = {}) HydraHead::Routes.new(router, options).draw end end ActiveSupport.on_load(:after_initialize) do begin SolrDocument.use_extension Hydra::ModelMixins::SolrDocumentExtension rescue NameError logger.warn "Couldn't find SolrDocument" end end
Version data entries
6 entries across 6 versions & 1 rubygems