提交 1c315ad5 编写于 作者: R Rafael França

Merge pull request #24011 from gsamokovarov/ar-persistence-api-docs-fix

Fix a small template misrender in ActiveRecord::Persistence
......@@ -61,7 +61,7 @@ def create!(attributes = nil, &block)
# +instantiate+ instead of +new+, finder methods ensure they get new
# instances of the appropriate class for each record.
#
# See +ActiveRecord::Inheritance#discriminate_class_for_record+ to see
# See <tt>ActiveRecord::Inheritance#discriminate_class_for_record</tt> to see
# how this "single-table" inheritance mapping is implemented.
def instantiate(attributes, column_types = {})
klass = discriminate_class_for_record(attributes)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册