Skip to content

Commit

Permalink
Invalidate MiqProductFeature cache when saving a Tenant record
Browse files Browse the repository at this point in the history
(cherry picked from commit 92cb362)
  • Loading branch information
kbrock authored and mzazrivec committed Dec 10, 2020
1 parent a4a3403 commit b9df8fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/tenant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class Tenant < ApplicationRecord
virtual_column :display_type, :type => :string

before_save :nil_blanks
after_save -> { MiqProductFeature.invalidate_caches }
after_create :create_tenant_group, :create_miq_product_features_for_tenant_nodes
before_destroy :ensure_can_be_destroyed

Expand Down

0 comments on commit b9df8fd

Please sign in to comment.