Module: HydraHead

Defined in:
lib/hydra-core.rb,
lib/hydra-head/engine.rb,
lib/hydra-head/routes.rb,
lib/hydra-head/version.rb

Defined Under Namespace

Classes: Engine, Routes

Constant Summary collapse

VERSION =
"6.2.2"

Class Method Summary collapse

Class Method Details

.add_routes(router, options = {}) ⇒ Object

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 Routes for information about how to modify which routes are generated.

Examples:

# in config/routes.rb
MyAppName::Application.routes.draw do
  Blacklight.add_routes(self)
  HydraHead.add_routes(self)
end


15
16
17
# File 'lib/hydra-core.rb', line 15

def self.add_routes(router, options = {})
  HydraHead::Routes.new(router, options).draw
end