From dbfcbf1236cb0cb2054cabb482967f05eed35182 Mon Sep 17 00:00:00 2001 From: Nadja Heitmann Date: Fri, 25 Oct 2024 12:11:50 +0200 Subject: [PATCH] Refs #7096 - Fix typo --- app/models/provisioning_template.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/provisioning_template.rb b/app/models/provisioning_template.rb index 627b3950710..e607582b4cd 100644 --- a/app/models/provisioning_template.rb +++ b/app/models/provisioning_template.rb @@ -29,7 +29,7 @@ def base_class :reject_if => :reject_template_combination_attributes? has_and_belongs_to_many :operatingsystems, :join_table => :operatingsystems_provisioning_templates, :association_foreign_key => :operatingsystem_id, :foreign_key => :provisioning_template_id has_many :os_default_templates - before_save :check_for_snippet_assoications + before_save :check_for_snippet_associations validate :no_os_for_registration @@ -255,7 +255,7 @@ def allowed_changes end # check if our template is a snippet, and remove its associations just in case they were selected. - def check_for_snippet_assoications + def check_for_snippet_associations return unless snippet hostgroups.clear template_combinations.clear