Module: Hyrax::SingularSubresourceController
- Extended by:
- ActiveSupport::Concern
- Includes:
- DenyAccessOverrideBehavior
- Included in:
- Admin::Analytics::AnalyticsController, StatsController
- Defined in:
- app/controllers/concerns/hyrax/singular_subresource_controller.rb
Instance Method Summary collapse
Methods included from DenyAccessOverrideBehavior
Instance Method Details
#find_file_set ⇒ Object
18 19 20 |
# File 'app/controllers/concerns/hyrax/singular_subresource_controller.rb', line 18 def find_file_set @file = Hyrax.query_service.find_by(id: params[:id]) end |
#find_work ⇒ Object
14 15 16 |
# File 'app/controllers/concerns/hyrax/singular_subresource_controller.rb', line 14 def find_work @work = Hyrax.query_service.find_by(id: params[:id]) end |