lib/memento/result.rb in memento-0.3.0 vs lib/memento/result.rb in memento-0.3.1

- old
+ new

@@ -21,10 +21,11 @@ def initialize(object, state) @object, @state = object, state end def error - @object.errors[:memento_undo] + error = @object.errors[:memento_undo] + error.present? ? error : nil end def failed? !!error end \ No newline at end of file