Skip to content

Commit

Permalink
Merge pull request #17285 from dwo/master
Browse files Browse the repository at this point in the history
mention the :without option [ci skip]
  • Loading branch information
senny committed Oct 16, 2014
2 parents 1a76ab8 + c5c08c6 commit 4150100
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions guides/source/active_record_validations.md
Expand Up @@ -361,6 +361,8 @@ class Product < ActiveRecord::Base
end
```

Alternatively, you can require that the specified attribute does _not_ match the regular expression by using the `:without` option.

The default error message is _"is invalid"_.

### `inclusion`
Expand Down

0 comments on commit 4150100

Please sign in to comment.