Sha256: e2845f303389a27b80ef7fd654390981bb151920454f6a7d853d84f1dcec53cc
Contents?: true
Size: 876 Bytes
Versions: 36
Compression:
Stored size: 876 Bytes
Contents
require 'hydra' module HydraHead require 'hydra-head/engine' if defined?(Rails) && Rails::VERSION::MAJOR == 3 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
36 entries across 36 versions & 1 rubygems