instance method validation_context=

Ruby on Rails 8.1.2

Since v8.0.4 Private — implementation detail, not part of the public API

Available in: v8.0.4 v8.1.2

Signature

validation_context=(context)

No documentation comment.

Parameters

context req
Source
# File activemodel/lib/active_model/validations.rb, line 447
    def validation_context=(context)
      context_for_validation.context = context
    end

Defined in activemodel/lib/active_model/validations.rb line 447 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveModel::Validations

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close