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:
Ryuta Kamizono 2019-08-06 20:25:59 +09:00 committed by GitHub
commit 7cd4148973
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 = {})