mirror of https://github.com/rails/rails
Use verb form of "fallback"
"Fallback" is a noun, whereas "fall back" is a verb.
This commit is contained in:
parent
ff9b62417f
commit
3bbf21c343
|
@ -26,7 +26,7 @@ Rails.application.configure do
|
||||||
# Compress CSS using a preprocessor.
|
# Compress CSS using a preprocessor.
|
||||||
# config.assets.css_compressor = :sass
|
# config.assets.css_compressor = :sass
|
||||||
|
|
||||||
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
# Do not fall back to assets pipeline if a precompiled asset is missed.
|
||||||
config.assets.compile = false
|
config.assets.compile = false
|
||||||
|
|
||||||
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
||||||
|
|
|
@ -72,7 +72,7 @@ module ActionController
|
||||||
#
|
#
|
||||||
# will try to check if +Admin::User+ or +User+ model exists, and use it to
|
# will try to check if +Admin::User+ or +User+ model exists, and use it to
|
||||||
# determine the wrapper key respectively. If both models don't exist,
|
# determine the wrapper key respectively. If both models don't exist,
|
||||||
# it will then fallback to use +user+ as the key.
|
# it will then fall back to use +user+ as the key.
|
||||||
#
|
#
|
||||||
# To disable this functionality for a controller:
|
# To disable this functionality for a controller:
|
||||||
#
|
#
|
||||||
|
|
|
@ -154,7 +154,7 @@ module ActionController
|
||||||
public :_compute_redirect_to_location
|
public :_compute_redirect_to_location
|
||||||
|
|
||||||
# Verifies the passed +location+ is an internal URL that's safe to redirect to and returns it, or nil if not.
|
# Verifies the passed +location+ is an internal URL that's safe to redirect to and returns it, or nil if not.
|
||||||
# Useful to wrap a params provided redirect URL and fallback to an alternate URL to redirect to:
|
# Useful to wrap a params provided redirect URL and fall back to an alternate URL to redirect to:
|
||||||
#
|
#
|
||||||
# redirect_to url_from(params[:redirect_url]) || root_url
|
# redirect_to url_from(params[:redirect_url]) || root_url
|
||||||
#
|
#
|
||||||
|
|
|
@ -118,7 +118,7 @@ module ActionDispatch
|
||||||
# Sets the \formats by string extensions. This differs from #format= by allowing you
|
# Sets the \formats by string extensions. This differs from #format= by allowing you
|
||||||
# to set multiple, ordered formats, which is useful when you want to have a fallback.
|
# to set multiple, ordered formats, which is useful when you want to have a fallback.
|
||||||
#
|
#
|
||||||
# In this example, the +:iphone+ format will be used if it's available, otherwise it'll fallback
|
# In this example, the +:iphone+ format will be used if it's available, otherwise it'll fall back
|
||||||
# to the +:html+ format.
|
# to the +:html+ format.
|
||||||
#
|
#
|
||||||
# class ApplicationController < ActionController::Base
|
# class ApplicationController < ActionController::Base
|
||||||
|
|
|
@ -201,7 +201,7 @@ module ActionDispatch
|
||||||
# more information.
|
# more information.
|
||||||
#
|
#
|
||||||
# For debugging purposes, when called with arguments this method will
|
# For debugging purposes, when called with arguments this method will
|
||||||
# fallback to Object#method
|
# fall back to Object#method
|
||||||
def method(*args)
|
def method(*args)
|
||||||
if args.empty?
|
if args.empty?
|
||||||
@method ||= check_method(
|
@method ||= check_method(
|
||||||
|
|
|
@ -26,7 +26,7 @@ Rails.application.configure do
|
||||||
# Compress CSS using a preprocessor.
|
# Compress CSS using a preprocessor.
|
||||||
# config.assets.css_compressor = :sass
|
# config.assets.css_compressor = :sass
|
||||||
|
|
||||||
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
# Do not fall back to assets pipeline if a precompiled asset is missed.
|
||||||
config.assets.compile = false
|
config.assets.compile = false
|
||||||
|
|
||||||
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
||||||
|
|
|
@ -152,7 +152,7 @@ module ActionView
|
||||||
# The template will be looked always in <tt>app/views/layouts/</tt> folder. But you can point
|
# The template will be looked always in <tt>app/views/layouts/</tt> folder. But you can point
|
||||||
# <tt>layouts</tt> folder direct also. <tt>layout "layouts/demo"</tt> is the same as <tt>layout "demo"</tt>.
|
# <tt>layouts</tt> folder direct also. <tt>layout "layouts/demo"</tt> is the same as <tt>layout "demo"</tt>.
|
||||||
#
|
#
|
||||||
# Setting the layout to +nil+ forces it to be looked up in the filesystem and fallbacks to the parent behavior if none exists.
|
# Setting the layout to +nil+ forces it to be looked up in the filesystem and falls back to the parent behavior if none exists.
|
||||||
# Setting it to +nil+ is useful to re-enable template lookup overriding a previous configuration set in the parent:
|
# Setting it to +nil+ is useful to re-enable template lookup overriding a previous configuration set in the parent:
|
||||||
#
|
#
|
||||||
# class ApplicationController < ActionController::Base
|
# class ApplicationController < ActionController::Base
|
||||||
|
@ -164,7 +164,7 @@ module ActionView
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
# class CommentsController < ApplicationController
|
# class CommentsController < ApplicationController
|
||||||
# # Will search for "comments" layout and fallback "application" layout
|
# # Will search for "comments" layout and fall back to "application" layout
|
||||||
# layout nil
|
# layout nil
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
|
|
|
@ -1050,7 +1050,7 @@ module ActiveRecord
|
||||||
# query per addressable type.
|
# query per addressable type.
|
||||||
# For example, if all the addressables are either of class Person or Company, then a total
|
# For example, if all the addressables are either of class Person or Company, then a total
|
||||||
# of 3 queries will be executed. The list of addressable types to load is determined on
|
# of 3 queries will be executed. The list of addressable types to load is determined on
|
||||||
# the back of the addresses loaded. This is not supported if Active Record has to fallback
|
# the back of the addresses loaded. This is not supported if Active Record has to fall back
|
||||||
# to the previous implementation of eager loading and will raise ActiveRecord::EagerLoadPolymorphicError.
|
# to the previous implementation of eager loading and will raise ActiveRecord::EagerLoadPolymorphicError.
|
||||||
# The reason is that the parent model's type is a column value so its corresponding table
|
# The reason is that the parent model's type is a column value so its corresponding table
|
||||||
# name cannot be put in the +FROM+/+JOIN+ clauses of that query.
|
# name cannot be put in the +FROM+/+JOIN+ clauses of that query.
|
||||||
|
|
|
@ -26,7 +26,7 @@ Rails.application.configure do
|
||||||
# Compress CSS using a preprocessor.
|
# Compress CSS using a preprocessor.
|
||||||
# config.assets.css_compressor = :sass
|
# config.assets.css_compressor = :sass
|
||||||
|
|
||||||
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
# Do not fall back to assets pipeline if a precompiled asset is missed.
|
||||||
config.assets.compile = false
|
config.assets.compile = false
|
||||||
|
|
||||||
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
||||||
|
|
|
@ -24,7 +24,7 @@ class String
|
||||||
#
|
#
|
||||||
# The second argument, +indent_string+, specifies which indent string to
|
# The second argument, +indent_string+, specifies which indent string to
|
||||||
# use. The default is +nil+, which tells the method to make a guess by
|
# use. The default is +nil+, which tells the method to make a guess by
|
||||||
# peeking at the first indented line, and fallback to a space if there is
|
# peeking at the first indented line, and fall back to a space if there is
|
||||||
# none.
|
# none.
|
||||||
#
|
#
|
||||||
# " foo".indent(2) # => " foo"
|
# " foo".indent(2) # => " foo"
|
||||||
|
|
|
@ -90,7 +90,7 @@ module Rails
|
||||||
end
|
end
|
||||||
|
|
||||||
# Hold configured generators fallbacks. If a plugin developer wants a
|
# Hold configured generators fallbacks. If a plugin developer wants a
|
||||||
# generator group to fallback to another group in case of missing generators,
|
# generator group to fall back to another group in case of missing generators,
|
||||||
# they can add a fallback.
|
# they can add a fallback.
|
||||||
#
|
#
|
||||||
# For example, shoulda is considered a test_framework and is an extension
|
# For example, shoulda is considered a test_framework and is an extension
|
||||||
|
|
|
@ -29,7 +29,7 @@ Rails.application.configure do
|
||||||
# Compress CSS using a preprocessor.
|
# Compress CSS using a preprocessor.
|
||||||
# config.assets.css_compressor = :sass
|
# config.assets.css_compressor = :sass
|
||||||
|
|
||||||
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
# Do not fall back to assets pipeline if a precompiled asset is missed.
|
||||||
config.assets.compile = false
|
config.assets.compile = false
|
||||||
|
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
|
|
Loading…
Reference in New Issue