lib/lite/validators/alpha_validator.rb in lite-validators-1.7.2 vs lib/lite/validators/alpha_validator.rb in lite-validators-1.8.0
- old
+ new
@@ -1,12 +1,12 @@
# frozen_string_literal: true
class AlphaValidator < BaseValidator
CASES = {
- lower: 'a-z',
- upper: 'A-Z',
- any: 'A-Za-z'
+ lower: "a-z",
+ upper: "A-Z",
+ any: "A-Za-z"
}.freeze
def validate_each(record, attribute, value)
assert_valid_case!
super