mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Config guide: should use config.action_dispatch.tld_length to set the TLD
This commit is contained in:
parent
e600f84208
commit
04779fbadd
1 changed files with 2 additions and 2 deletions
|
@ -260,14 +260,14 @@ h4. Configuring Action Dispatch
|
||||||
|
|
||||||
* +config.action_dispatch.session_store+ sets the name of the store for session data. The default is +:cookie_store+; other valid options include +:active_record_store+, +:mem_cache_store+ or the name of your own custom class.
|
* +config.action_dispatch.session_store+ sets the name of the store for session data. The default is +:cookie_store+; other valid options include +:active_record_store+, +:mem_cache_store+ or the name of your own custom class.
|
||||||
|
|
||||||
|
* +config.action_dispatch.tld_length+ sets the TLD (top-level domain) length for the application. Defaults to +1+.
|
||||||
|
|
||||||
* +ActionDispatch::Callbacks.before+ takes a block of code to run before the request.
|
* +ActionDispatch::Callbacks.before+ takes a block of code to run before the request.
|
||||||
|
|
||||||
* +ActionDispatch::Callbacks.to_prepare+ takes a block to run after +ActionDispatch::Callbacks.before+, but before the request. Runs for every request in +development+ mode, but only once for +production+ or environments with +cache_classes+ set to +true+.
|
* +ActionDispatch::Callbacks.to_prepare+ takes a block to run after +ActionDispatch::Callbacks.before+, but before the request. Runs for every request in +development+ mode, but only once for +production+ or environments with +cache_classes+ set to +true+.
|
||||||
|
|
||||||
* +ActionDispatch::Callbacks.after+ takes a block of code to run after the request.
|
* +ActionDispatch::Callbacks.after+ takes a block of code to run after the request.
|
||||||
|
|
||||||
* +ActionDispatch::Http::URL.tld_length+ sets the TLD (top-level domain) length for the application. Defaults to +1+.
|
|
||||||
|
|
||||||
h4. Configuring Action View
|
h4. Configuring Action View
|
||||||
|
|
||||||
There are only a few configuration options for Action View, starting with four on +ActionView::Base+:
|
There are only a few configuration options for Action View, starting with four on +ActionView::Base+:
|
||||||
|
|
Loading…
Reference in a new issue