Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
lstrzebinczyk committed Aug 23, 2024
1 parent de2e889 commit a1c92ed
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions lib/granite/action/preconditions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a1c92ed

Please sign in to comment.