aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-04-08 23:54:36 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-04-08 23:54:36 -0300
commit5c7bcfc111275087d428e7f446d10bf31f1c841c (patch)
tree1fe030edf1ac79824e33d44829f32c6e851627fa /railties/guides
parent56d9945e8a9613c2983c3ab60600bac6e58b58d8 (diff)
downloadrails-5c7bcfc111275087d428e7f446d10bf31f1c841c.tar.gz
rails-5c7bcfc111275087d428e7f446d10bf31f1c841c.tar.bz2
rails-5c7bcfc111275087d428e7f446d10bf31f1c841c.zip
default_url_options does not receive one argument anymore
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/source/action_controller_overview.textile3
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/guides/source/action_controller_overview.textile b/railties/guides/source/action_controller_overview.textile
index bc85f07ecc..6b90ddce5a 100644
--- a/railties/guides/source/action_controller_overview.textile
+++ b/railties/guides/source/action_controller_overview.textile
@@ -152,8 +152,7 @@ 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)
+ def default_url_options
{:locale => I18n.locale}
end
end