parent
777bc58de1
commit
28be1a28ea
|
@ -337,7 +337,7 @@ set. In fact, this set can be any enumerable object.
|
||||||
```ruby
|
```ruby
|
||||||
class Account < ActiveRecord::Base
|
class Account < ActiveRecord::Base
|
||||||
validates :subdomain, exclusion: { in: %w(www us ca jp),
|
validates :subdomain, exclusion: { in: %w(www us ca jp),
|
||||||
message: "Subdomain %{value} is reserved." }
|
message: "%{value} is reserved." }
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue