aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-04-08 20:58:09 -0700
committerSantiago Pastorino <santiago@wyeworks.com>2012-04-08 20:58:09 -0700
commite7671b5b7f941b99b940131f06fb78ad245375d7 (patch)
tree64bf641bb134266ffcba5eb9d1193856a329e2d5 /railties/guides/source
parent05d4ccffceb1089be67d35b0f6c2383a7d1378df (diff)
parent6f4f499845ad1eb14a0fdc4f495ee33b0c22ed8a (diff)
downloadrails-e7671b5b7f941b99b940131f06fb78ad245375d7.tar.gz
rails-e7671b5b7f941b99b940131f06fb78ad245375d7.tar.bz2
rails-e7671b5b7f941b99b940131f06fb78ad245375d7.zip
Merge pull request #5784 from rafaelfranca/default_url-3-2
[3-2-stable] Document that default_url_options must return a hash with symbolized keys
Diffstat (limited to 'railties/guides/source')
-rw-r--r--railties/guides/source/action_controller_overview.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/action_controller_overview.textile b/railties/guides/source/action_controller_overview.textile
index bc85f07ecc..99a3480e6d 100644
--- a/railties/guides/source/action_controller_overview.textile
+++ b/railties/guides/source/action_controller_overview.textile
@@ -152,8 +152,8 @@ You can set global default parameters that will be used when generating URLs wit
<ruby>
class ApplicationController < ActionController::Base
- # The options parameter is the hash passed in to 'url_for'
- def default_url_options(options)
+ # This method must return a hash with symbolized keys.
+ def default_url_options
{:locale => I18n.locale}
end
end