Browse files

AS guide: documents to_options and to_options!

  • Loading branch information...
1 parent a079f60 commit 115aa4eee07053947f3fa76d1a118ebb8d67e5ed @fxn fxn committed Sep 13, 2009
Showing with 4 additions and 0 deletions.
  1. +4 −0 railties/guides/source/active_support_overview.textile
4 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:

0 comments on commit 115aa4e

Please sign in to comment.