diff options
author | Kir Shatrov <shatrov@me.com> | 2017-07-16 20:11:16 +0300 |
---|---|---|
committer | Kir Shatrov <shatrov@me.com> | 2017-07-16 20:11:16 +0300 |
commit | d7b1521db83998fb57811ecc9d12b68e610a44bd (patch) | |
tree | 8789a99dad9b1cfbb8c7a1e58c7681f9d05df1ab /activemodel/test/validators/email_validator.rb | |
parent | 83f39a3bcf3f50d12d41bff4a110c57e2e4be605 (diff) | |
download | rails-d7b1521db83998fb57811ecc9d12b68e610a44bd.tar.gz rails-d7b1521db83998fb57811ecc9d12b68e610a44bd.tar.bz2 rails-d7b1521db83998fb57811ecc9d12b68e610a44bd.zip |
Use frozen string literal in activemodel/
Diffstat (limited to 'activemodel/test/validators/email_validator.rb')
-rw-r--r-- | activemodel/test/validators/email_validator.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activemodel/test/validators/email_validator.rb b/activemodel/test/validators/email_validator.rb index f733c45cf0..0c634d8659 100644 --- a/activemodel/test/validators/email_validator.rb +++ b/activemodel/test/validators/email_validator.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EmailValidator < ActiveModel::EachValidator def validate_each(record, attribute, value) record.errors[attribute] << (options[:message] || "is not an email") unless |