Permalink
Browse files

Always use name :object in collection item partial

  • Loading branch information...
1 parent 556adce commit 61302b09ec6180ebb05b2a3f87ea69d43a1da75c Alexander Semyonov committed Jul 28, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/espresso/index.html.haml
View
2 app/views/espresso/index.html.haml
@@ -10,4 +10,4 @@
- begin
= render collection
- rescue ActionView::MissingTemplate
- = render :partial => 'espresso/item', :collection => collection
+ = render :partial => 'espresso/item', :collection => collection, :as => :object

0 comments on commit 61302b0

Please sign in to comment.