diff options
author | Eileen M. Uchitelle <eileencodes@gmail.com> | 2016-08-06 10:19:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-06 10:19:33 -0400 |
commit | 78a877408b8a253d49fba931e2aed68217c2d18a (patch) | |
tree | 9fd000c2310ece7e5b294fcd379503bcc0e5ff1a | |
parent | d59dc69f847bff13bb85a571c8cf1512cd067d92 (diff) | |
parent | b605a6ac9e59feee8cc1dc8ea2a9ea5a3042ac50 (diff) | |
download | rails-78a877408b8a253d49fba931e2aed68217c2d18a.tar.gz rails-78a877408b8a253d49fba931e2aed68217c2d18a.tar.bz2 rails-78a877408b8a253d49fba931e2aed68217c2d18a.zip |
Merge pull request #26023 from tekin/correct-acceptance-guidelines
Correct usage for acceptance validator in guide
-rw-r--r-- | guides/source/active_record_validations.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md index 2737237c1a..665e97c470 100644 --- a/guides/source/active_record_validations.md +++ b/guides/source/active_record_validations.md @@ -290,7 +290,7 @@ You can also pass custom message via the `message` option. ```ruby class Person < ApplicationRecord - validates :terms_of_service, acceptance: true, message: 'must be abided' + validates :terms_of_service, acceptance: { message: 'must be abided' } end ``` |