lib/lite/validators/compare_validator.rb in lite-validators-1.5.0 vs lib/lite/validators/compare_validator.rb in lite-validators-1.6.0

- old
+ new

@@ -32,10 +32,10 @@ def check options[:check] || :equal_to end def valid_attr? - other = record.send(options[:to]) - value.send(CHECKS[check], other) + other = record.public_send(options[:to]) + value.public_send(CHECKS[check], other) end end