Skip to content

Commit

Permalink
[ci skip] Mention context option of save in documentation
Browse files Browse the repository at this point in the history
`ActiveRecord::Validations#save` takes `context` option
which can change validation context.
This fact should be mentioned in the documentation.
  • Loading branch information
okuramasafumi committed Aug 6, 2019
1 parent 3d83fff commit e7ce8d2
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 e7ce8d2

Please sign in to comment.