lib/mini_defender/validator.rb in mini_defender-0.1.4 vs lib/mini_defender/validator.rb in mini_defender-0.1.6

- old
+ new

@@ -55,10 +55,10 @@ next unless rule.active?(self) value_included &= !rule.excluded?(self) unless rule.passes?(k, value, self) - @errors[k] << rule.message(k, value, self) + @errors[k] << rule.error_message(k, value, self) end end if @errors[k].empty? && value_included @validated[k] = value