Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
4f234bfd
R
rails
项目概览
张重言
/
rails
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rails
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
4f234bfd
编写于
5月 29, 2011
作者:
L
Lee Reilly
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Corrected some typos and American vs. Queen's English issues
上级
18b153d1
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
10 addition
and
10 deletion
+10
-10
actionpack/lib/action_dispatch/testing/assertions/response.rb
...onpack/lib/action_dispatch/testing/assertions/response.rb
+4
-4
actionpack/test/controller/new_base/base_test.rb
actionpack/test/controller/new_base/base_test.rb
+2
-2
activerecord/lib/active_record/associations.rb
activerecord/lib/active_record/associations.rb
+1
-1
activerecord/lib/active_record/named_scope.rb
activerecord/lib/active_record/named_scope.rb
+1
-1
activerecord/lib/active_record/schema_dumper.rb
activerecord/lib/active_record/schema_dumper.rb
+1
-1
activeresource/lib/active_resource/base.rb
activeresource/lib/active_resource/base.rb
+1
-1
未找到文件。
actionpack/lib/action_dispatch/testing/assertions/response.rb
浏览文件 @
4f234bfd
...
...
@@ -60,11 +60,11 @@ def assert_redirected_to(options = {}, message=nil)
assert_response
(
:redirect
,
message
)
return
true
if
options
==
@response
.
location
redirected_to_after_normali
s
ation
=
normalize_argument_to_redirection
(
@response
.
location
)
options_after_normali
s
ation
=
normalize_argument_to_redirection
(
options
)
redirected_to_after_normali
z
ation
=
normalize_argument_to_redirection
(
@response
.
location
)
options_after_normali
z
ation
=
normalize_argument_to_redirection
(
options
)
if
redirected_to_after_normali
sation
!=
options_after_normalis
ation
flunk
"Expected response to be a redirect to <
#{
options_after_normali
sation
}
> but was a redirect to <
#{
redirected_to_after_normalis
ation
}
>"
if
redirected_to_after_normali
zation
!=
options_after_normaliz
ation
flunk
"Expected response to be a redirect to <
#{
options_after_normali
zation
}
> but was a redirect to <
#{
redirected_to_after_normaliz
ation
}
>"
end
end
...
...
actionpack/test/controller/new_base/base_test.rb
浏览文件 @
4f234bfd
...
...
@@ -40,7 +40,7 @@ module Submodule
class
ContainedEmptyController
<
ActionController
::
Base
;
end
class
ContainedSubEmptyController
<
ContainedEmptyController
;
end
class
ContainedNonDefaultPathController
<
ActionController
::
Base
def
self
.
controller_path
;
"i_am_extremly_not_default"
;
end
def
self
.
controller_path
;
"i_am_extrem
e
ly_not_default"
;
end
end
end
...
...
@@ -89,7 +89,7 @@ class BaseTest < Rack::TestCase
end
test
"namespaced non-default controller path"
do
assert_equal
'i_am_extremly_not_default'
,
Submodule
::
ContainedNonDefaultPathController
.
controller_path
assert_equal
'i_am_extrem
e
ly_not_default'
,
Submodule
::
ContainedNonDefaultPathController
.
controller_path
assert_equal
Submodule
::
ContainedNonDefaultPathController
.
controller_path
,
Submodule
::
ContainedNonDefaultPathController
.
new
.
controller_path
end
...
...
activerecord/lib/active_record/associations.rb
浏览文件 @
4f234bfd
...
...
@@ -860,7 +860,7 @@ def association_instance_set(name, association)
# the inverse of each other and the inverse of the +dungeon+ association on +EvilWizard+
# is the +evil_wizard+ association on +Dungeon+ (and vice-versa). By default,
# Active Record doesn't know anything about these inverse relationships and so no object
# loading optimi
s
ation is possible. For example:
# loading optimi
z
ation is possible. For example:
#
# d = Dungeon.first
# t = d.traps.first
...
...
activerecord/lib/active_record/named_scope.rb
浏览文件 @
4f234bfd
...
...
@@ -17,7 +17,7 @@ module ClassMethods
# posts.each {|p| puts p.name } # Fires "select * from posts" and loads post objects
#
# fruits = Fruit.scoped
# fruits = fruits.where(:colo
u
r => 'red') if options[:red_only]
# fruits = fruits.where(:color => 'red') if options[:red_only]
# fruits = fruits.limit(10) if limited?
#
# Anonymous \scopes tend to be useful when procedurally generating complex
...
...
activerecord/lib/active_record/schema_dumper.rb
浏览文件 @
4f234bfd
...
...
@@ -106,7 +106,7 @@ def table(table, stream)
spec
=
{}
spec
[
:name
]
=
column
.
name
.
inspect
# AR has an optimi
s
ation which handles zero-scale decimals as integers. This
# AR has an optimi
z
ation which handles zero-scale decimals as integers. This
# code ensures that the dumper still dumps the column as a decimal.
spec
[
:type
]
=
if
column
.
type
==
:integer
&&
[
/^numeric/
,
/^decimal/
].
any?
{
|
e
|
e
.
match
(
column
.
sql_type
)
}
'decimal'
...
...
activeresource/lib/active_resource/base.rb
浏览文件 @
4f234bfd
...
...
@@ -283,7 +283,7 @@ class << self
# attribute 'name', :string
#
# # or use the convenience methods and pass >=1 attribute names
# string 'eye_colo
ur', 'hair_colou
r'
# string 'eye_colo
r', 'hair_colo
r'
# integer 'age'
# float 'height', 'weight'
#
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录