Module: ForemanDocker::FindContainer
- Extended by:
- ActiveSupport::Concern
- Included in:
- Containers::StepsController, ContainersController
- Defined in:
- app/controllers/concerns/foreman_docker/find_container.rb
Instance Method Summary collapse
Instance Method Details
#allowed_resources ⇒ Object
15 16 17 |
# File 'app/controllers/concerns/foreman_docker/find_container.rb', line 15 def allowed_resources ForemanDocker::Docker.(:view_compute_resources) end |
#find_container ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'app/controllers/concerns/foreman_docker/find_container.rb', line 6 def find_container if params[:id].blank? not_found return end @container = Container.("#{}_#{controller_name}".to_sym) .find(params[:id]) end |