mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
added more items to the set to improve explanation of validates_exclusion_of
This commit is contained in:
parent
0da0aa4cd9
commit
018bf0f575
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ This helper validates that the attributes' values are not included in a given se
|
|||
|
||||
<ruby>
|
||||
class Account < ActiveRecord::Base
|
||||
validates_exclusion_of :subdomain, :in => %w(www),
|
||||
validates_exclusion_of :subdomain, :in => %w(www us ca jp),
|
||||
:message => "Subdomain %{value} is reserved."
|
||||
end
|
||||
</ruby>
|
||||
|
|
Loading…
Reference in a new issue