Merge pull request #36863 from okuramasafumi/add-explanation-of-context-to-activerecord-save-docs
[ci skip] Mention `context` option of save in documentation
This commit is contained in:
commit
7cd4148973
@ -40,6 +40,7 @@ module Validations
|
||||
include ActiveModel::Validations
|
||||
|
||||
# The validation process on save can be skipped by passing <tt>validate: false</tt>.
|
||||
# The validation context can be changed by passing <tt>context: context</tt>.
|
||||
# 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 = {})
|
||||
|
Loading…
Reference in New Issue
Block a user