From a1c92ed082a8b6b7114dd08bd4eced77e1bae0ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Strzebi=C5=84czyk?= Date: Fri, 23 Aug 2024 12:14:29 +0200 Subject: [PATCH] wip --- lib/granite/action/preconditions.rb | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lib/granite/action/preconditions.rb b/lib/granite/action/preconditions.rb index d1d01cf..8ae27b6 100644 --- a/lib/granite/action/preconditions.rb +++ b/lib/granite/action/preconditions.rb @@ -118,23 +118,9 @@ def run_preconditions!(cache_result: false) errors.empty? end - def super_run_validations!(context = nil) - current_context = validation_context - self.validation_context = context - errors.clear - _run_validate_callbacks - errors.empty? - ensure - self.validation_context = current_context - end - def run_validations! run_preconditions! && super end - - def raise_validation_error - raise Granite::Form::ValidationError, self - end end end end