Skip to content

Commit

Permalink
Merge pull request #36863 from okuramasafumi/add-explanation-of-conte…
Browse files Browse the repository at this point in the history
…xt-to-activerecord-save-docs

[ci skip] Mention `context` option of save in documentation
  • Loading branch information
kamipo committed Aug 6, 2019
2 parents 3d83fff + e7ce8d2 commit 7cd4148
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions activerecord/lib/active_record/validations.rb
Expand Up @@ -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 = {})
Expand Down

0 comments on commit 7cd4148

Please sign in to comment.