mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Document that default_url_options must return a hash with symbolized
keys
This commit is contained in:
parent
9efe01ef0d
commit
c9945b3f0a
1 changed files with 1 additions and 0 deletions
|
@ -152,6 +152,7 @@ You can set global default parameters that will be used when generating URLs wit
|
|||
|
||||
<ruby>
|
||||
class ApplicationController < ActionController::Base
|
||||
# This method must return a hash with symbolized keys.
|
||||
def default_url_options
|
||||
{:locale => I18n.locale}
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue