lib/ripple/validations/associated_validator.rb in ripple-0.9.0.beta2 vs lib/ripple/validations/associated_validator.rb in ripple-0.9.0

- old
+ new

@@ -22,13 +22,7 @@ def validate_each(record, attribute, value) return if (value.is_a?(Array) ? value : [value]).collect{ |r| r.nil? || r.valid? }.all? record.errors.add(attribute, :invalid, options.merge(:value => value)) end end - - module ClassMethods - def validates_associated(*attr_names) - validates_with AssociatedValidator, _merge_attributes(attr_names) - end - end end end