lib/ripple/validations.rb in ripple-0.7.1 vs lib/ripple/validations.rb in ripple-0.8.0.beta

- old
+ new

@@ -62,9 +62,14 @@ end def save! (raise Ripple::DocumentInvalid.new(self) unless save) || true end + + def update_attributes!(attrs) + self.attributes = attrs + save! + end end end end