aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2009-09-13 21:12:08 +0200
committerXavier Noria <fxn@hashref.com>2009-09-13 21:12:08 +0200
commit115aa4eee07053947f3fa76d1a118ebb8d67e5ed (patch)
tree084640acb8abc5475484eb1d97be7f1c09d1c59a /railties/guides
parenta079f60b634d43f5c85c4d589aa3fbaf6b1cdd86 (diff)
downloadrails-115aa4eee07053947f3fa76d1a118ebb8d67e5ed.tar.gz
rails-115aa4eee07053947f3fa76d1a118ebb8d67e5ed.tar.bz2
rails-115aa4eee07053947f3fa76d1a118ebb8d67e5ed.zip
AS guide: documents to_options and to_options!
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/source/active_support_overview.textile4
1 files changed, 4 insertions, 0 deletions
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: