Permalink
Browse files

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

Correct usage for acceptance validator in guide
  • Loading branch information...
eileencodes committed Aug 6, 2016
2 parents d59dc69 + b605a6a commit 78a877408b8a253d49fba931e2aed68217c2d18a
Showing with 1 addition and 1 deletion.
  1. +1 −1 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
```

0 comments on commit 78a8774

Please sign in to comment.