lib/lite/validators/coordinate_validator.rb in lite-validators-1.1.1 vs lib/lite/validators/coordinate_validator.rb in lite-validators-1.1.2
- old
+ new
@@ -1,9 +1,9 @@
# frozen_string_literal: true
class CoordinateValidator < BaseValidator
- BOUNDARIES ||= {
+ BOUNDARIES = {
latitude: 90.0,
longitude: 180.0
}.freeze
def validate_each(record, attribute, value)