diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-04-08 23:54:36 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-04-08 23:54:36 -0300 |
commit | 5c7bcfc111275087d428e7f446d10bf31f1c841c (patch) | |
tree | 1fe030edf1ac79824e33d44829f32c6e851627fa /railties/guides | |
parent | 56d9945e8a9613c2983c3ab60600bac6e58b58d8 (diff) | |
download | rails-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.textile | 3 |
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 |