mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix some typos in comments.
[ci skip]
This commit is contained in:
parent
1dcf280014
commit
d2660c8cad
8 changed files with 8 additions and 8 deletions
|
@ -103,7 +103,7 @@ module ActionController
|
||||||
#
|
#
|
||||||
# Both <tt>ActionController::Base</tt> and <tt>ActionController::API</tt>
|
# Both <tt>ActionController::Base</tt> and <tt>ActionController::API</tt>
|
||||||
# include <tt>ActionController::Renderers::All</tt>, making all renderers
|
# include <tt>ActionController::Renderers::All</tt>, making all renderers
|
||||||
# avaialable in the controller. See <tt>Renderers::RENDERERS</tt> and <tt>Renderers.add</tt>.
|
# available in the controller. See <tt>Renderers::RENDERERS</tt> and <tt>Renderers.add</tt>.
|
||||||
#
|
#
|
||||||
# Since <tt>ActionController::Metal</tt> controllers cannot render, the controller
|
# Since <tt>ActionController::Metal</tt> controllers cannot render, the controller
|
||||||
# must include <tt>AbstractController::Rendering</tt>, <tt>ActionController::Rendering</tt>,
|
# must include <tt>AbstractController::Rendering</tt>, <tt>ActionController::Rendering</tt>,
|
||||||
|
|
|
@ -541,7 +541,7 @@ module ActiveRecord
|
||||||
result = exec_query(sql, 'SCHEMA').first
|
result = exec_query(sql, 'SCHEMA').first
|
||||||
|
|
||||||
if result
|
if result
|
||||||
# Splitting with left parantheses and picking up last will return all
|
# Splitting with left parentheses and picking up last will return all
|
||||||
# columns separated with comma(,).
|
# columns separated with comma(,).
|
||||||
columns_string = result["sql"].split('(').last
|
columns_string = result["sql"].split('(').last
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
require "cases/helper"
|
require "cases/helper"
|
||||||
|
|
||||||
unless current_adapter?(:PostgreSQLAdapter) # PostgreSQL does not use type strigns for lookup
|
unless current_adapter?(:PostgreSQLAdapter) # PostgreSQL does not use type strings for lookup
|
||||||
module ActiveRecord
|
module ActiveRecord
|
||||||
module ConnectionAdapters
|
module ConnectionAdapters
|
||||||
class TypeLookupTest < ActiveRecord::TestCase
|
class TypeLookupTest < ActiveRecord::TestCase
|
||||||
|
|
|
@ -301,7 +301,7 @@ class NamedScopingTest < ActiveRecord::TestCase
|
||||||
:relation, # private class method on AR::Base
|
:relation, # private class method on AR::Base
|
||||||
:new, # redefined class method on AR::Base
|
:new, # redefined class method on AR::Base
|
||||||
:all, # a default scope
|
:all, # a default scope
|
||||||
:public, # some imporant methods on Module and Class
|
:public, # some important methods on Module and Class
|
||||||
:protected,
|
:protected,
|
||||||
:private,
|
:private,
|
||||||
:name,
|
:name,
|
||||||
|
|
|
@ -10,7 +10,7 @@ require 'json/encoding_test_cases'
|
||||||
|
|
||||||
# The AS::JSON encoder requires the BigDecimal core_ext, which, unfortunately,
|
# The AS::JSON encoder requires the BigDecimal core_ext, which, unfortunately,
|
||||||
# changes the BigDecimal#to_s output, and consequently the JSON gem output. So
|
# changes the BigDecimal#to_s output, and consequently the JSON gem output. So
|
||||||
# we need to require this unfront to ensure we don't get a false failure, but
|
# we need to require this upfront to ensure we don't get a false failure, but
|
||||||
# ideally we should just fix the BigDecimal core_ext to not change to_s without
|
# ideally we should just fix the BigDecimal core_ext to not change to_s without
|
||||||
# arguments.
|
# arguments.
|
||||||
require 'active_support/core_ext/big_decimal'
|
require 'active_support/core_ext/big_decimal'
|
||||||
|
|
|
@ -120,7 +120,7 @@ class Build
|
||||||
|
|
||||||
def env
|
def env
|
||||||
if activesupport? && !isolated?
|
if activesupport? && !isolated?
|
||||||
# There is a known issue with the listen tests that casuses files to be
|
# There is a known issue with the listen tests that causes files to be
|
||||||
# incorrectly GC'ed even when they are still in-use. The current is to
|
# incorrectly GC'ed even when they are still in-use. The current is to
|
||||||
# only run them in isolation to avoid randomly failing our test suite.
|
# only run them in isolation to avoid randomly failing our test suite.
|
||||||
{ 'LISTEN' => '0' }
|
{ 'LISTEN' => '0' }
|
||||||
|
|
|
@ -219,7 +219,7 @@ module Rails
|
||||||
# The next thing that changes in isolated engines is the behavior of routes.
|
# The next thing that changes in isolated engines is the behavior of routes.
|
||||||
# Normally, when you namespace your controllers, you also need to namespace
|
# Normally, when you namespace your controllers, you also need to namespace
|
||||||
# the related routes. With an isolated engine, the engine's namespace is
|
# the related routes. With an isolated engine, the engine's namespace is
|
||||||
# automatically applied, so you don't need to specify it explicity in your
|
# automatically applied, so you don't need to specify it explicitly in your
|
||||||
# routes:
|
# routes:
|
||||||
#
|
#
|
||||||
# MyEngine::Engine.routes.draw do
|
# MyEngine::Engine.routes.draw do
|
||||||
|
|
|
@ -686,7 +686,7 @@ module ApplicationTests
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def form_authenticity_token(*args); token; end # stub the authenticy token
|
def form_authenticity_token(*args); token; end # stub the authenticity token
|
||||||
end
|
end
|
||||||
RUBY
|
RUBY
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue