diff options
author | Ben Orenstein <ben.orenstein@gmail.com> | 2011-02-26 19:07:35 -0500 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-03-05 11:56:31 +0100 |
commit | eef713dd663dc0381d4a9c5479b3b8f1d254495c (patch) | |
tree | 3ff396c723f25398aa40cf16b61e3b3693c4fb25 /railties/guides/source | |
parent | e15973ce7c1ea926da38fb5b4a6f2c1b62beaac7 (diff) | |
download | rails-eef713dd663dc0381d4a9c5479b3b8f1d254495c.tar.gz rails-eef713dd663dc0381d4a9c5479b3b8f1d254495c.tar.bz2 rails-eef713dd663dc0381d4a9c5479b3b8f1d254495c.zip |
Clean up wording.
Diffstat (limited to 'railties/guides/source')
-rw-r--r-- | railties/guides/source/active_support_core_extensions.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile index 8090d16fea..1df36137b4 100644 --- a/railties/guides/source/active_support_core_extensions.textile +++ b/railties/guides/source/active_support_core_extensions.textile @@ -2011,7 +2011,7 @@ That syntactic sugar is used a lot in Rails to avoid positional arguments where If a method expects a variable number of arguments and uses <tt>*</tt> in its declaration, however, such an options hash ends up being an item of the array of arguments, where it loses its role. -In those cases, you may give an options hash a distinguished treatment with +extract_options!+. That method checks the type of the last item of an array. If it is a hash it pops it and returns it, otherwise returns an empty hash. +In those cases, you may give an options hash a distinguished treatment with +extract_options!+. This method checks the type of the last item of an array. If it is a hash it pops it and returns it, otherwise it returns an empty hash. Let's see for example the definition of the +caches_action+ controller macro: |