diff options
author | Xavier Noria <fxn@hashref.com> | 2015-06-15 21:38:15 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2015-06-15 21:41:08 +0200 |
commit | c865b8298f12e898430496d4b3f719ee20172765 (patch) | |
tree | e612ac3dd1144d107479b847ac279eba9e261efe | |
parent | 5c517ee442c52fde8c0e9c6a87625f6aa9ab951f (diff) | |
download | rails-c865b8298f12e898430496d4b3f719ee20172765.tar.gz rails-c865b8298f12e898430496d4b3f719ee20172765.tar.bz2 rails-c865b8298f12e898430496d4b3f719ee20172765.zip |
document that default_url_options is cached per request [ci skip]
-rw-r--r-- | guides/source/action_controller_overview.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/guides/source/action_controller_overview.md b/guides/source/action_controller_overview.md index 7d95d4792e..d506722f75 100644 --- a/guides/source/action_controller_overview.md +++ b/guides/source/action_controller_overview.md @@ -185,7 +185,9 @@ end These options will be used as a starting point when generating URLs, so it's possible they'll be overridden by the options passed to `url_for` calls. -If you define `default_url_options` in `ApplicationController`, as in the example above, it will be used for all URL generation. The method can also be defined in a specific controller, in which case it only affects URLs generated there. +If you define `default_url_options` in `ApplicationController`, as in the example above, these defaults will be used for all URL generation. The method can also be defined in a specific controller, in which case it only affects URLs generated there. + +In a given request, the method is not actually called for every single generated URL; for performance reasons, the returned hash is cached, there is at most one invocation per request. ### Strong Parameters |