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