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 7, 2019
1 parent 1704f76 commit c5b68fb
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 c5b68fb

Please sign in to comment.