diff options
author | Cassidy Kobewka <hello@cassidy.codes> | 2018-04-16 19:09:45 -0400 |
---|---|---|
committer | Cassidy Kobewka <hello@cassidy.codes> | 2018-04-16 19:09:45 -0400 |
commit | 3137a8739e7cb0885cb3f9f631dbca8107448ce5 (patch) | |
tree | f566d8e3500971056b16b98322f9d709667eac53 /activemodel/lib/active_model/validations | |
parent | 2aa8e0a56f39f0a44f4deb19c856314a7a473b2f (diff) | |
download | rails-3137a8739e7cb0885cb3f9f631dbca8107448ce5.tar.gz rails-3137a8739e7cb0885cb3f9f631dbca8107448ce5.tar.bz2 rails-3137a8739e7cb0885cb3f9f631dbca8107448ce5.zip |
Use string-based fields. [ci skip]
Diffstat (limited to 'activemodel/lib/active_model/validations')
-rw-r--r-- | activemodel/lib/active_model/validations/validates.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validations/validates.rb b/activemodel/lib/active_model/validations/validates.rb index 475251aee1..88cca318ef 100644 --- a/activemodel/lib/active_model/validations/validates.rb +++ b/activemodel/lib/active_model/validations/validates.rb @@ -63,7 +63,7 @@ module ActiveModel # and strings in shortcut form. # # validates :email, format: /@/ - # validates :subscribed_to_newsletter, inclusion: [true, false] + # validates :role, inclusion: %(admin contributor) # validates :password, length: 6..20 # # When using shortcut form, ranges and arrays are passed to your |