提交 ff240410 编写于 作者: S Santiago Pastorino

Merge pull request #16441 from tomkadwill/activerecord_associations_options_param

[ci skip] Changed options to +options+ for rdoc
......@@ -1131,7 +1131,7 @@ module ClassMethods
# * <tt>Firm#clients.build</tt> (similar to <tt>Client.new("firm_id" => id)</tt>)
# * <tt>Firm#clients.create</tt> (similar to <tt>c = Client.new("firm_id" => id); c.save; c</tt>)
# * <tt>Firm#clients.create!</tt> (similar to <tt>c = Client.new("firm_id" => id); c.save!</tt>)
# The declaration can also include an options hash to specialize the behavior of the association.
# The declaration can also include an +options+ hash to specialize the behavior of the association.
#
# === Options
# [:class_name]
......@@ -1259,7 +1259,7 @@ def has_many(name, scope = nil, options = {}, &extension)
#
# === Options
#
# The declaration can also include an options hash to specialize the behavior of the association.
# The declaration can also include an +options+ hash to specialize the behavior of the association.
#
# Options are:
# [:class_name]
......@@ -1364,7 +1364,7 @@ def has_one(name, scope = nil, options = {})
# * <tt>Post#build_author</tt> (similar to <tt>post.author = Author.new</tt>)
# * <tt>Post#create_author</tt> (similar to <tt>post.author = Author.new; post.author.save; post.author</tt>)
# * <tt>Post#create_author!</tt> (similar to <tt>post.author = Author.new; post.author.save!; post.author</tt>)
# The declaration can also include an options hash to specialize the behavior of the association.
# The declaration can also include an +options+ hash to specialize the behavior of the association.
#
# === Options
#
......@@ -1541,7 +1541,7 @@ def belongs_to(name, scope = nil, options = {})
# * <tt>Developer#projects.exists?(...)</tt>
# * <tt>Developer#projects.build</tt> (similar to <tt>Project.new("developer_id" => id)</tt>)
# * <tt>Developer#projects.create</tt> (similar to <tt>c = Project.new("developer_id" => id); c.save; c</tt>)
# The declaration may include an options hash to specialize the behavior of the association.
# The declaration may include an +options+ hash to specialize the behavior of the association.
#
# === Options
#
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册