mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
added more items to the set to improve explanation of validates_exclusion_of
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user