提交 c2ea2874 编写于 作者: P Pratik Naik

Remove unnecessary arguments. References #11491.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9179 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 dd3c0ae9
......@@ -130,20 +130,20 @@ def render_partial_collection(partial_path, collection, partial_spacer_template
spacer = partial_spacer_template ? render(:partial => partial_spacer_template) : ''
if partial_path.nil?
render_partial_collection_with_unknown_partial_path(collection, local_assigns, spacer)
render_partial_collection_with_unknown_partial_path(collection, local_assigns)
else
render_partial_collection_with_known_partial_path(collection, partial_path, local_assigns, spacer)
render_partial_collection_with_known_partial_path(collection, partial_path, local_assigns)
end.join(spacer)
end
def render_partial_collection_with_known_partial_path(collection, partial_path, local_assigns, spacer)
def render_partial_collection_with_known_partial_path(collection, partial_path, local_assigns)
template = ActionView::PartialTemplate.new(self, partial_path, nil, local_assigns)
collection.map do |element|
template.render_member(element)
end
end
def render_partial_collection_with_unknown_partial_path(collection, local_assigns, spacer)
def render_partial_collection_with_unknown_partial_path(collection, local_assigns)
templates = Hash.new
i = 0
collection.map do |element|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册