From 193133555f33c433098c7674b0f01c4ee74cea59 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Tue, 15 Sep 2009 01:25:12 +0200 Subject: AS guide: documents reverse_update --- railties/guides/source/active_support_overview.textile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'railties') diff --git a/railties/guides/source/active_support_overview.textile b/railties/guides/source/active_support_overview.textile index 442407f916..9682a6ee4b 100644 --- a/railties/guides/source/active_support_overview.textile +++ b/railties/guides/source/active_support_overview.textile @@ -1143,6 +1143,11 @@ options.reverse_merge!(:length => 30, :omission => "...") WARNING. Take into account that +reverse_merge!+ may change the hash in the caller, which may or may not be a good idea. +h5. +reverse_update+ + +The method +reverse_update+ is an alias for +reverse_merge!+, explained above. + +WARNING. Note that +reverse_update+ has no bang. h5. +deep_merge+ and +deep_merge!+ -- cgit v1.2.3