提交 72795d72 编写于 作者: M Mark Rushakoff

Code-format references to config settings

上级 dab6c3aa
...@@ -16,7 +16,7 @@ module DataStreaming ...@@ -16,7 +16,7 @@ module DataStreaming
protected protected
# Sends the file. This uses a server-appropriate method (such as X-Sendfile) # Sends the file. This uses a server-appropriate method (such as X-Sendfile)
# via the Rack::Sendfile middleware. The header to use is set via # via the Rack::Sendfile middleware. The header to use is set via
# config.action_dispatch.x_sendfile_header. # +config.action_dispatch.x_sendfile_header+.
# Your server can also configure this for you by setting the X-Sendfile-Type header. # Your server can also configure this for you by setting the X-Sendfile-Type header.
# #
# Be careful to sanitize the path parameter if it is coming from a web # Be careful to sanitize the path parameter if it is coming from a web
......
...@@ -225,7 +225,7 @@ def permanent ...@@ -225,7 +225,7 @@ def permanent
# cookie was tampered with by the user (or a 3rd party), an ActiveSupport::MessageVerifier::InvalidSignature exception will # cookie was tampered with by the user (or a 3rd party), an ActiveSupport::MessageVerifier::InvalidSignature exception will
# be raised. # be raised.
# #
# This jar requires that you set a suitable secret for the verification on your app's config.secret_token. # This jar requires that you set a suitable secret for the verification on your app's +config.secret_token+.
# #
# Example: # Example:
# #
......
...@@ -18,7 +18,7 @@ module ActionDispatch ...@@ -18,7 +18,7 @@ module ActionDispatch
# classes before they are unloaded. # classes before they are unloaded.
# #
# By default, ActionDispatch::Reloader is included in the middleware stack # By default, ActionDispatch::Reloader is included in the middleware stack
# only in the development environment; specifically, when config.cache_classes # only in the development environment; specifically, when +config.cache_classes+
# is false. Callbacks may be registered even when it is not included in the # is false. Callbacks may be registered even when it is not included in the
# middleware stack, but are executed only when <tt>ActionDispatch::Reloader.prepare!</tt> # middleware stack, but are executed only when <tt>ActionDispatch::Reloader.prepare!</tt>
# or <tt>ActionDispatch::Reloader.cleanup!</tt> are called manually. # or <tt>ActionDispatch::Reloader.cleanup!</tt> are called manually.
......
...@@ -113,7 +113,7 @@ def stylesheet_url(source) ...@@ -113,7 +113,7 @@ def stylesheet_url(source)
# == Caching multiple stylesheets into one # == Caching multiple stylesheets into one
# #
# You can also cache multiple stylesheets into one file, which requires less HTTP connections and can better be # You can also cache multiple stylesheets into one file, which requires less HTTP connections and can better be
# compressed by gzip (leading to faster transfers). Caching will only happen if config.perform_caching # compressed by gzip (leading to faster transfers). Caching will only happen if +config.perform_caching+
# is set to true (which is the case by default for the Rails production environment, but not for the development # is set to true (which is the case by default for the Rails production environment, but not for the development
# environment). Examples: # environment). Examples:
# #
......
...@@ -332,7 +332,7 @@ module Rails ...@@ -332,7 +332,7 @@ module Rails
# #
# == Loading priority # == Loading priority
# #
# In order to change engine's priority you can use config.railties_order in main application. # In order to change engine's priority you can use +config.railties_order+ in main application.
# It will affect the priority of loading views, helpers, assets and all the other files # It will affect the priority of loading views, helpers, assets and all the other files
# related to engine or application. # related to engine or application.
# #
......
...@@ -22,7 +22,7 @@ module Rails ...@@ -22,7 +22,7 @@ module Rails
# #
# * creating initializers # * creating initializers
# * configuring a Rails framework for the application, like setting a generator # * configuring a Rails framework for the application, like setting a generator
# * adding config.* keys to the environment # * +adding config.*+ keys to the environment
# * setting up a subscriber with ActiveSupport::Notifications # * setting up a subscriber with ActiveSupport::Notifications
# * adding rake tasks # * adding rake tasks
# #
......
...@@ -43,7 +43,7 @@ def before_configuration(&block) ...@@ -43,7 +43,7 @@ def before_configuration(&block)
ActiveSupport.on_load(:before_configuration, :yield => true, &block) ActiveSupport.on_load(:before_configuration, :yield => true, &block)
end end
# Third configurable block to run. Does not run if config.cache_classes # Third configurable block to run. Does not run if +config.cache_classes+
# set to false. # set to false.
def before_eager_load(&block) def before_eager_load(&block)
ActiveSupport.on_load(:before_eager_load, :yield => true, &block) ActiveSupport.on_load(:before_eager_load, :yield => true, &block)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册