Browse files


  • Loading branch information...
1 parent cee2ee8 commit a14a8a6e54803856f298434c2902f5f19005bf52 @fxn fxn committed Sep 26, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/active_support_overview.textile
@@ -1382,7 +1382,7 @@ The method +diff+ returns a hash that represents a diff of the receiver and the
An important property of this diff hash is that you can retrieve the original hash by applying +diff+ twice:
-hash.diff(hash2).diff(hash2) == hash1
+hash.diff(hash2).diff(hash2) == hash
Diffing hashes may be useful for error messages related to expected option hashes for example.

0 comments on commit a14a8a6

Please sign in to comment.