Class: Hyrax::SearchState
- Inherits:
-
Blacklight::SearchState
- Object
- Blacklight::SearchState
- Hyrax::SearchState
- Defined in:
- lib/hyrax/search_state.rb
Instance Method Summary collapse
-
#url_for_document(doc, _options = {}) ⇒ Object
Override Blacklight so we can use the per-worktype routes.
Instance Method Details
#url_for_document(doc, _options = {}) ⇒ Object
Override Blacklight so we can use the per-worktype routes
7 8 9 10 |
# File 'lib/hyrax/search_state.rb', line 7 def url_for_document(doc, = {}) return [hyrax, doc] if doc.collection? [main_app, doc] end |