Module: XenComputeHelper
- Defined in:
- app/helpers/xen_compute_helper.rb
Instance Method Summary collapse
Instance Method Details
#compute_attributes_from_params(compute_resource) ⇒ Object
2 3 4 5 6 7 |
# File 'app/helpers/xen_compute_helper.rb', line 2 def compute_attributes_from_params(compute_resource) id = params.dig('host', 'compute_profile_id') || params.dig('compute_profile_id') return compute_resource.compute_profile_attributes_for id if id {} end |