chore: Move Enterprise pricing validation to on create (#8856)

* chore: Move Pricing validation to on create

The previous validation was getting triggered on all transactions,
this would prevent login to existing users and session data need to be updated.
Opting for a less intrusive approach.

* chore: minore change
This commit is contained in:
Sojan Jose
2024-02-05 17:48:29 +04:00
committed by GitHub
parent 39e27d2a23
commit 1b753720c1
2 changed files with 20 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ module Enterprise::Concerns::User
extend ActiveSupport::Concern
included do
before_validation :ensure_installation_pricing_plan_quantity
before_validation :ensure_installation_pricing_plan_quantity, on: :create
end
def ensure_installation_pricing_plan_quantity