show own/want on new items

This commit is contained in:
Emi Matchu 2011-08-04 10:33:35 -04:00
parent 5d3343bd6c
commit ea4564569b

View file

@ -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