diff options
author | Adam Crownoble <adam@codenoble.com> | 2016-09-25 12:39:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-25 12:39:05 +0800 |
commit | 717a771d106921469a6ff287b1a521928abadedc (patch) | |
tree | 8045a8bfa26cf9cb27e9a9e49c3b0051c16d3f1c | |
parent | f08a2834732eb64f1f5cb2c4c8528b3305ae1054 (diff) | |
download | rails-717a771d106921469a6ff287b1a521928abadedc.tar.gz rails-717a771d106921469a6ff287b1a521928abadedc.tar.bz2 rails-717a771d106921469a6ff287b1a521928abadedc.zip |
Fix code formatting in `#save` RDoc [ci skip]
Noticed that the `validate: false` option for `ActiveRecord::Persistence#save` and `#save!` were not formatted as code like the other examples in the documentation.
-rw-r--r-- | activerecord/lib/active_record/persistence.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb index 65248f3a32..6933f3f9b8 100644 --- a/activerecord/lib/active_record/persistence.rb +++ b/activerecord/lib/active_record/persistence.rb @@ -107,7 +107,7 @@ module ActiveRecord # # By default, save always runs validations. If any of them fail the action # is cancelled and #save returns +false+, and the record won't be saved. However, if you supply - # validate: false, validations are bypassed altogether. See + # <tt>validate: false</tt>, validations are bypassed altogether. See # ActiveRecord::Validations for more information. # # By default, #save also sets the +updated_at+/+updated_on+ attributes to @@ -134,7 +134,7 @@ module ActiveRecord # # By default, #save! always runs validations. If any of them fail # ActiveRecord::RecordInvalid gets raised, and the record won't be saved. However, if you supply - # validate: false, validations are bypassed altogether. See + # <tt>validate: false</tt>, validations are bypassed altogether. See # ActiveRecord::Validations for more information. # # By default, #save! also sets the +updated_at+/+updated_on+ attributes to |