1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #26023 from tekin/correct-acceptance-guidelines

Correct usage for acceptance validator in guide
This commit is contained in:
Eileen M. Uchitelle 2016-08-06 10:19:33 -04:00 committed by GitHub
commit 78a877408b

View file

@ -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
```