Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
abd89f96
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,发现更多精彩内容 >>
提交
abd89f96
编写于
3月 20, 2013
作者:
V
Vipul A M
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix some typos in AR- CHANGELOG, tests, method doc. fixed
上级
e61cdf02
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
6 addition
and
6 deletion
+6
-6
activerecord/CHANGELOG.md
activerecord/CHANGELOG.md
+2
-2
activerecord/lib/active_record/associations.rb
activerecord/lib/active_record/associations.rb
+1
-1
activerecord/lib/active_record/relation/query_methods.rb
activerecord/lib/active_record/relation/query_methods.rb
+1
-1
activerecord/test/cases/associations/join_model_test.rb
activerecord/test/cases/associations/join_model_test.rb
+1
-1
activerecord/test/cases/callbacks_test.rb
activerecord/test/cases/callbacks_test.rb
+1
-1
未找到文件。
activerecord/CHANGELOG.md
浏览文件 @
abd89f96
...
...
@@ -624,7 +624,7 @@
*John Wang*
*
Collection associations
`#empty?`
always respects buil
ded
records.
*
Collection associations
`#empty?`
always respects buil
t
records.
Fixes #8879.
Example:
...
...
@@ -1503,7 +1503,7 @@
*
Move HABTM validity checks to
`ActiveRecord::Reflection`
. One side effect of
this is to move when the exceptions are raised from the point of declaration
to when the association is built. This is consist
a
nt with other association
to when the association is built. This is consist
e
nt with other association
validity checks.
*Andrew White*
...
...
activerecord/lib/active_record/associations.rb
浏览文件 @
abd89f96
...
...
@@ -966,7 +966,7 @@ def association_instance_set(name, association)
# For +has_and_belongs_to_many+, <tt>delete</tt> and <tt>destroy</tt> are the same: they
# cause the records in the join table to be removed.
#
# For +has_many+, <tt>destroy</tt> and <tt>dest
or
y_all</tt> will always call the <tt>destroy</tt> method of the
# For +has_many+, <tt>destroy</tt> and <tt>dest
ro
y_all</tt> will always call the <tt>destroy</tt> method of the
# record(s) being removed so that callbacks are run. However <tt>delete</tt> and <tt>delete_all</tt> will either
# do the deletion according to the strategy specified by the <tt>:dependent</tt> option, or
# if no <tt>:dependent</tt> option is given, then it will follow the default strategy.
...
...
activerecord/lib/active_record/relation/query_methods.rb
浏览文件 @
abd89f96
...
...
@@ -614,7 +614,7 @@ def lock!(locks = true) # :nodoc:
#
# The returned <tt>ActiveRecord::NullRelation</tt> inherits from Relation and implements the
# Null Object pattern. It is an object with defined null behavior and always returns an empty
# array of records without quering the database.
# array of records without quer
y
ing the database.
#
# Any subsequent condition chained to the returned relation will continue
# generating an empty relation and will not fire any query to the database.
...
...
activerecord/test/cases/associations/join_model_test.rb
浏览文件 @
abd89f96
...
...
@@ -464,7 +464,7 @@ def test_associating_unsaved_records_with_has_many_through
assert
saved_post
.
reload
.
tags
(
true
).
include?
(
new_tag
)
new_post
=
Post
.
new
(
:title
=>
"Association replac
mene
t works!"
,
:body
=>
"You best believe it."
)
new_post
=
Post
.
new
(
:title
=>
"Association replac
emen
t works!"
,
:body
=>
"You best believe it."
)
saved_tag
=
tags
(
:general
)
new_post
.
tags
<<
saved_tag
...
...
activerecord/test/cases/callbacks_test.rb
浏览文件 @
abd89f96
...
...
@@ -520,7 +520,7 @@ def test_callback_returning_false
],
david
.
history
end
def
test_inherit
e
nce_of_callbacks
def
test_inherit
a
nce_of_callbacks
parent
=
ParentDeveloper
.
new
assert
!
parent
.
after_save_called
parent
.
save
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录