Skip to content
Browse files

Clean up wording.

  • Loading branch information...
1 parent e15973c commit eef713dd663dc0381d4a9c5479b3b8f1d254495c @r00k r00k committed with fxn Feb 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/active_support_core_extensions.textile
View
2 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:

0 comments on commit eef713d

Please sign in to comment.
Something went wrong with that request. Please try again.