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
Constant Summary collapse
- VERSION =
"6.2.2"
Class Method Summary collapse
-
.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.
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.
15 16 17 |
# File 'lib/hydra-core.rb', line 15 def self.add_routes(router, = {}) HydraHead::Routes.new(router, ).draw end |