Class: Sufia::ResourceSyncController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Sufia::ResourceSyncController
- Defined in:
- app/controllers/sufia/resource_sync_controller.rb
Instance Method Summary collapse
Instance Method Details
#capability_list ⇒ Object
10 11 12 13 14 15 16 |
# File 'app/controllers/sufia/resource_sync_controller.rb', line 10 def capability_list # Caching based on host, for multitenancy support body = Rails.cache.fetch("source_description_#{request.host}", expires_in: 1.week) do build_capability_list end render body: body, content_type: 'application/xml' end |
#resource_list ⇒ Object
18 19 20 21 22 23 24 |
# File 'app/controllers/sufia/resource_sync_controller.rb', line 18 def resource_list # Caching based on host, for multitenancy support body = Rails.cache.fetch("source_description_#{request.host}", expires_in: 1.week) do build_resource_list end render body: body, content_type: 'application/xml' end |
#source_description ⇒ Object
2 3 4 5 6 7 8 |
# File 'app/controllers/sufia/resource_sync_controller.rb', line 2 def source_description # Caching based on host, for multitenancy support body = Rails.cache.fetch("source_description_#{request.host}", expires_in: 1.week) do build_source_description end render body: body, content_type: 'application/xml' end |