From 115aa4eee07053947f3fa76d1a118ebb8d67e5ed Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Sun, 13 Sep 2009 21:12:08 +0200 Subject: AS guide: documents to_options and to_options! --- railties/guides/source/active_support_overview.textile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'railties') diff --git a/railties/guides/source/active_support_overview.textile b/railties/guides/source/active_support_overview.textile index b6da20314a..2e7fbe7cea 100644 --- a/railties/guides/source/active_support_overview.textile +++ b/railties/guides/source/active_support_overview.textile @@ -1254,6 +1254,10 @@ The second line can safely access the +:params+ key, and let the user to pass ei There's also the bang variant +symbolize_keys!+ that symbolizes keys in the very receiver. +h5. +to_options+ and +to_options!+ + +The methods +to_options+ and +to_options!+ are respectively aliases of +symbolize_keys+ and +symbolize_keys!+. + h4. Indifferent Access The method +with_indifferent_access+ returns an +ActiveSupport::HashWithIndifferentAccess+ out of its receiver: -- cgit v1.2.3