lib/lite/validators/compare_validator.rb in lite-validators-1.1.1 vs lib/lite/validators/compare_validator.rb in lite-validators-1.1.2
- old
+ new
@@ -1,9 +1,9 @@
# frozen_string_literal: true
class CompareValidator < BaseValidator
- CHECKS ||= {
+ CHECKS = {
less_than: :<,
less_than_or_equal_to: :<=,
greater_than: :>,
greater_than_or_equal_to: :>=,
equal_to: :==,