Permalink
Browse files

added more items to the set to improve explanation of validates_exclu…

…sion_of
  • Loading branch information...
1 parent 0da0aa4 commit 018bf0f5756ef3887815ea46d6671dc1d3b526cf @rajinder-yadav rajinder-yadav committed Oct 4, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/active_record_validations_callbacks.textile
@@ -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>

0 comments on commit 018bf0f

Please sign in to comment.