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

Fix some typos in AR- CHANGELOG, tests, method doc. fixed

上级 e61cdf02
......@@ -624,7 +624,7 @@
*John Wang*
* Collection associations `#empty?` always respects builded records.
* Collection associations `#empty?` always respects built 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 consistant with other association
to when the association is built. This is consistent with other association
validity checks.
*Andrew White*
......
......@@ -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>destory_all</tt> will always call the <tt>destroy</tt> method of the
# For +has_many+, <tt>destroy</tt> and <tt>destroy_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.
......
......@@ -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 querying 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.
......
......@@ -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 replacmenet works!", :body => "You best believe it.")
new_post = Post.new(:title => "Association replacement works!", :body => "You best believe it.")
saved_tag = tags(:general)
new_post.tags << saved_tag
......
......@@ -520,7 +520,7 @@ def test_callback_returning_false
], david.history
end
def test_inheritence_of_callbacks
def test_inheritance_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.
先完成此消息的编辑!
想要评论请 注册