Module: ForemanPuppet::Extensions::ProvisioningTemplate::PrependedMethods
- Defined in:
- app/models/concerns/foreman_puppet/extensions/provisioning_template.rb
Instance Method Summary collapse
-
#check_for_snippet_assoications ⇒ Object
check if our template is a snippet, and remove its associations just in case they were selected.
- #reject_template_combination_attributes?(params) ⇒ Boolean
Instance Method Details
#check_for_snippet_assoications ⇒ Object
check if our template is a snippet, and remove its associations just in case they were selected.
57 58 59 60 61 |
# File 'app/models/concerns/foreman_puppet/extensions/provisioning_template.rb', line 57 def check_for_snippet_assoications super return unless snippet environments.clear end |
#reject_template_combination_attributes?(params) ⇒ Boolean
52 53 54 |
# File 'app/models/concerns/foreman_puppet/extensions/provisioning_template.rb', line 52 def reject_template_combination_attributes?(params) params[:environment_id].blank? && super(params) end |