lib/ripple/validations.rb in ripple-0.9.2 vs lib/ripple/validations.rb in ripple-0.9.3
- old
+ new
@@ -52,13 +52,9 @@
# Raises Ripple::DocumentInvalid if the record did not save
def create!(attrs={}, &block)
obj = create(attrs, &block)
(raise Ripple::DocumentInvalid.new(obj) if obj.new?) || obj
end
-
- def validates_associated(*attr_names)
- validates_with AssociatedValidator, _merge_attributes(attr_names)
- end
end
module InstanceMethods
# @private
def save(options={:validate => true})