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

Version Path
hydra-core-5.4.1 lib/hydra-core.rb
hydra-core-6.2.2 lib/hydra-core.rb
hydra-core-6.2.1 lib/hydra-core.rb
hydra-core-6.2.0 lib/hydra-core.rb
hydra-core-6.1.1 lib/hydra-core.rb
hydra-core-6.1.0 lib/hydra-core.rb
hydra-core-6.0.0 lib/hydra-core.rb
hydra-core-6.0.0.rc4 lib/hydra-core.rb
hydra-core-6.0.0.rc3 lib/hydra-core.rb
hydra-core-6.0.0.rc2 lib/hydra-core.rb
hydra-core-6.0.0.rc1 lib/hydra-core.rb
hydra-core-6.0.0.pre8 lib/hydra-core.rb
hydra-core-5.4.0 lib/hydra-core.rb
hydra-core-6.0.0.pre7 lib/hydra-core.rb
hydra-core-6.0.0.pre6 lib/hydra-core.rb
hydra-core-6.0.0.pre5 lib/hydra-core.rb
hydra-core-6.0.0.pre4 lib/hydra-core.rb
hydra-core-6.0.0.pre3 lib/hydra-core.rb
hydra-core-6.0.0.pre2 lib/hydra-core.rb
hydra-core-6.0.0.pre1 lib/hydra-core.rb