From ea4564569b24fb4b30ff28b86ba85cc5cc9f2ba9 Mon Sep 17 00:00:00 2001 From: Matchu Date: Thu, 4 Aug 2011 10:33:35 -0400 Subject: [PATCH] show own/want on new items --- app/controllers/items_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/items_controller.rb b/app/controllers/items_controller.rb index d42345df..f90e1240 100644 --- a/app/controllers/items_controller.rb +++ b/app/controllers/items_controller.rb @@ -34,6 +34,7 @@ class ItemsController < ApplicationController respond_to do |format| format.html { @newest_items = Item.newest.limit(18) + current_user.assign_closeted_to_items!(@newest_items) if user_signed_in? } format.js { render :json => {:error => '$q required'}} end