diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-04-01 02:09:15 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-04-01 02:09:15 +0000 |
commit | c2ea2874475f4f93fe087ef63cdeee020dc98cdd (patch) | |
tree | 1272773af822a67a1ed58878043446d2acee53c9 /actionpack/lib/action_view/partials.rb | |
parent | dd3c0ae95c37f816bdb53e5578e63e2ba2e44add (diff) | |
download | rails-c2ea2874475f4f93fe087ef63cdeee020dc98cdd.tar.gz rails-c2ea2874475f4f93fe087ef63cdeee020dc98cdd.tar.bz2 rails-c2ea2874475f4f93fe087ef63cdeee020dc98cdd.zip |
Remove unnecessary arguments. References #11491.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9179 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/partials.rb')
-rw-r--r-- | actionpack/lib/action_view/partials.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_view/partials.rb b/actionpack/lib/action_view/partials.rb index a92b05508a..37b717d848 100644 --- a/actionpack/lib/action_view/partials.rb +++ b/actionpack/lib/action_view/partials.rb @@ -130,20 +130,20 @@ module ActionView 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| |