提交 40f68f72 编写于 作者: V Vipul A M

Merge pull request #24852 from jrafanie/fix_typos

Fix some typos in comments [ci skip]
......@@ -103,7 +103,7 @@ module ClassMethods
#
# Both <tt>ActionController::Base</tt> and <tt>ActionController::API</tt>
# 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
# must include <tt>AbstractController::Rendering</tt>, <tt>ActionController::Rendering</tt>,
......
......@@ -541,7 +541,7 @@ def table_structure_with_collation(table_name, basic_structure)
result = exec_query(sql, 'SCHEMA').first
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_string = result["sql"].split('(').last
......
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 ConnectionAdapters
class TypeLookupTest < ActiveRecord::TestCase
......
......@@ -301,7 +301,7 @@ def pro; end
:relation, # private class method on AR::Base
:new, # redefined class method on AR::Base
:all, # a default scope
:public, # some imporant methods on Module and Class
:public, # some important methods on Module and Class
:protected,
:private,
:name,
......
......@@ -10,7 +10,7 @@
# The AS::JSON encoder requires the BigDecimal core_ext, which, unfortunately,
# 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
# arguments.
require 'active_support/core_ext/big_decimal'
......
......@@ -120,7 +120,7 @@ def rake(*tasks)
def env
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
# only run them in isolation to avoid randomly failing our test suite.
{ 'LISTEN' => '0' }
......
......@@ -219,7 +219,7 @@ module Rails
# The next thing that changes in isolated engines is the behavior of routes.
# Normally, when you namespace your controllers, you also need to namespace
# 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:
#
# MyEngine::Engine.routes.draw do
......
......@@ -686,7 +686,7 @@ def update
private
def form_authenticity_token(*args); token; end # stub the authenticy token
def form_authenticity_token(*args); token; end # stub the authenticity token
end
RUBY
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册