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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user