From e7ce8d2653eee9d25858c9f2a458a796b0ad1764 Mon Sep 17 00:00:00 2001 From: OKURA Masafumi Date: Tue, 6 Aug 2019 20:10:11 +0900 Subject: [PATCH] [ci skip] Mention `context` option of save in documentation `ActiveRecord::Validations#save` takes `context` option which can change validation context. This fact should be mentioned in the documentation. --- activerecord/lib/active_record/validations.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb index 23e8d53168bba..d21716404e529 100644 --- a/activerecord/lib/active_record/validations.rb +++ b/activerecord/lib/active_record/validations.rb @@ -40,6 +40,7 @@ module Validations include ActiveModel::Validations # The validation process on save can be skipped by passing validate: false. + # The validation context can be changed by passing context: context. # The regular {ActiveRecord::Base#save}[rdoc-ref:Persistence#save] method is replaced # with this when the validations module is mixed in, which it is by default. def save(options = {})