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:
commit
78a877408b
1 changed files with 1 additions and 1 deletions
|
@ -290,7 +290,7 @@ You can also pass custom message via the `message` option.
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
class Person < ApplicationRecord
|
class Person < ApplicationRecord
|
||||||
validates :terms_of_service, acceptance: true, message: 'must be abided'
|
validates :terms_of_service, acceptance: { message: 'must be abided' }
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue