diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-11-12 15:02:12 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-11-12 15:02:12 +0000 |
commit | 55b6697493e2fc39f3e2a7b6b3c8bcfb94947daa (patch) | |
tree | 6161ad38218dd66da8431d0914a896751e74a005 /actionpack/lib | |
parent | a406643b959d4bb601c62857ca38ebcd91eec4a8 (diff) | |
download | rails-55b6697493e2fc39f3e2a7b6b3c8bcfb94947daa.tar.gz rails-55b6697493e2fc39f3e2a7b6b3c8bcfb94947daa.tar.bz2 rails-55b6697493e2fc39f3e2a7b6b3c8bcfb94947daa.zip |
Fixed that has_many :through associations should render as collections too (closes #9051) [mathie/danger]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8130 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/partials.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/partials.rb b/actionpack/lib/action_view/partials.rb index 17556b3141..b0570ef78c 100644 --- a/actionpack/lib/action_view/partials.rb +++ b/actionpack/lib/action_view/partials.rb @@ -119,7 +119,7 @@ module ActionView else render("#{path}/_#{partial_name}", local_assigns) end - when Array, ActiveRecord::Associations::AssociationCollection + when Array, ActiveRecord::Associations::AssociationCollection, ActiveRecord::Associations::HasManyThroughAssociation if partial_path.any? path = ActionController::RecordIdentifier.partial_path(partial_path.first) collection = partial_path |